Skip to content

Commit 6a325eb

Browse files
committed
[netlify-build]
1 parent 2015bda commit 6a325eb

File tree

2 files changed

+26
-2
lines changed
  • src/connections/sources/catalog/libraries

2 files changed

+26
-2
lines changed

src/connections/sources/catalog/libraries/mobile/kotlin-android/index.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ redirect_from:
88
With Analytics-Kotlin, you can send data using Kotlin applications to any analytics or marketing tool without having to learn, test, or implement a new API every time. Analytics-Kotlin enables you to process and track the history of a payload, while Segment controls the API and prevents unintended operations.
99

1010
> info ""
11-
> Analytics Kotlin is in public beta and currently supports [these destinations](https://github.com/segmentio/analytics-kotlin/tree/main/samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins){:target="_blank"} with Segment actively adding more to the list. Segment's [First-Access and Beta terms](https://segment.com/legal/first-access-beta-preview/) govern this library.
11+
> Analytics Kotlin is in public beta and currently supports [these destinations](https://github.com/segmentio/analytics-kotlin/tree/main/samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins){:target="_blank"} with Segment actively adding more to the list. If you don't see your destination, you can [build your own](/docs/connections/sources/catalog/libraries/mobile/kotlin-android/index/#build-your-own-destination). <br>Segment's [First-Access and Beta terms](https://segment.com/legal/first-access-beta-preview/) govern this library.
1212
1313
> success ""
1414
> You can choose to set up your Analytics Kotlin source on [mobile](/docs/connections/sources/catalog/libraries/mobile/kotlin-android) or on the [server](/docs/connections/sources/catalog/libraries/server/kotlin). Segment doesn’t support device-mode destinations on the server-side.
@@ -413,3 +413,27 @@ analytics.flush("SomePlugin")
413413
```
414414
{% endcodeexampletab %}
415415
{% endcodeexample %}
416+
417+
## Build Your Own Destination
418+
419+
To build your own Kotlin Destination:
420+
421+
1. Go to the [Kotlin Destination Plugin Template](https://github.com/segmentio/kotlin-destination-templates){:target="_blank"}.
422+
2. Click **Use this template**.
423+
3. Enter a name for the repository.
424+
4. Click **Create repository from template**.
425+
5. Go to **destination > src > main > java/dmn/your/pkg/destination** in your repository.
426+
6. Click the **ExampleDestination.kt**.
427+
7. Edit the code by filling in the `TODO` sections with the appropriate information for your destination. Segment recommends you to change the package name before you finalize your build.
428+
8. Commit your changes.
429+
430+
You can unit test your destination to make sure it works. Segment recommends you to use the testing template as a starter and to build upon it to get test coverage of most scenarios.
431+
432+
To test your destination:
433+
434+
1. Go to **destination > src > test > java/dmn/your/pkg/destination**.
435+
2. Click **ExampleDestinationTests.kt**.
436+
3. Edit the code by filling in the `TODO` sections with the appropriate information for your destination.
437+
4. Commit your changes.
438+
439+
Segment recommends you to test your destination implementation end-to-end. Send some sample analytics events and ensure that they reach the destination.

src/connections/sources/catalog/libraries/server/kotlin/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ redirect_from:
77
With Analytics-Kotlin, you can send data using Kotlin applications to any analytics or marketing tool without having to learn, test, or implement a new API every time. Analytics-Kotlin enables you to process and track the history of a payload, while Segment controls the API and prevents unintended operations.
88

99
> info ""
10-
> Analytics-Kotlin is in public beta and currently supports [these destinations](https://github.com/segmentio/analytics-kotlin/tree/main/samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins){:target="_blank"} with Segment actively adding more to the list. Segment's [First-Access and Beta terms](https://segment.com/legal/first-access-beta-preview/) govern this library.
10+
> Analytics-Kotlin is in public beta and currently supports [these destinations](https://github.com/segmentio/analytics-kotlin/tree/main/samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins){:target="_blank"} with Segment actively adding more to the list. If you don't see your destination, you can [build your own](/docs/connections/sources/catalog/libraries/mobile/kotlin-android/index/#build-your-own-destination). Segment's [First-Access and Beta terms](https://segment.com/legal/first-access-beta-preview/) govern this library.
1111
1212
> success ""
1313
> You can choose to set up your Analytics Kotlin source on [mobile](/docs/connections/sources/catalog/libraries/mobile/kotlin-android/index/) or on the [server](/docs/connections/sources/catalog/libraries/server/kotlin/index/). Segment doesn’t support device-mode destinations on the server-side.

0 commit comments

Comments
 (0)