Skip to content

Commit e1d08f5

Browse files
authored
support destination clean up (#74)
* standardize destination package name * remove supported destinations from sample * add supported destination to readme
1 parent ed398f0 commit e1d08f5

File tree

20 files changed

+63
-2544
lines changed

20 files changed

+63
-2544
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ You can find usage documentation at [https://segment.com/docs/sources/mobile/kot
5454

5555
Explore more via the [example projects](samples) which showcase analytics instrumentation on different platforms/languages and usage of plugins. These projects contain sample [plugins](samples/kotlin-android-app/src/main/java/com/segment/analytics/next/plugins) and [destination plugins](samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins)
5656

57+
## Supported Device Mode Destinations
58+
59+
| Partner | Package |
60+
| --- | --- |
61+
| Amplitude | https://github.com/segment-integrations/analytics-kotlin-amplitude |
62+
| AppsFlyer | https://github.com/segment-integrations/analytics-kotlin-appsflyer |
63+
| Firebase | https://github.com/segment-integrations/analytics-kotlin-firebase |
64+
| Mixpanel | https://github.com/segment-integrations/analytics-kotlin-mixpanel |
65+
66+
5767
## Compatibility
5868

5969
* If you use pure Java codebase, please refer to [Java Compatibility](JAVA_COMPAT.md) for sample usages.

samples/kotlin-android-app-destinations/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
This is a sample android app that uses the `analytics-kotlin` library and the new `Plugins` concepts. It is meant to be simplistic, and easy to understand all the while showcasing the power of the analytics-kotlin library
33

44
## Plugins
5-
- [Amplitude Session](src/main/java/com/segment/analytics/destinations/plugins/AmplitudeSession.kt)
5+
- [Amplitude Session](src/main/java/com/segment/analytics/kotlin/destinations/plugins/AmplitudeSession.kt)
66
Sample plugin to enable users to enrich data for the Amplitude Actions destination
77

8-
- [AppsFlyer](src/main/java/com/segment/analytics/destinations/plugins/AppsflyerDestination.kt)
8+
- [AppsFlyer](src/main/java/com/segment/analytics/kotlin/destinations/plugins/AppsflyerDestination.kt)
99
Sample plugin to enable users to send data to the device-mode AppsFlyer destination
1010

11-
- [Comscore](src/main/java/com/segment/analytics/destinations/plugins/ComscoreDestination.kt)
11+
- [Comscore](src/main/java/com/segment/analytics/kotlin/destinations/plugins/ComscoreDestination.kt)
1212
Sample plugin to enable users to send data to the device-mode Comscore destination
1313

14-
- [Firebase](src/main/java/com/segment/analytics/destinations/plugins/FirebaseDestination.kt)
14+
- [Firebase](src/main/java/com/segment/analytics/kotlin/destinations/plugins/FirebaseDestination.kt)
1515
Sample plugin to enable users to send data to the device-mode Firebase destination
1616

17-
- [Intercom](src/main/java/com/segment/analytics/destinations/plugins/IntercomDestination.kt)
17+
- [Intercom](src/main/java/com/segment/analytics/kotlin/destinations/plugins/IntercomDestination.kt)
1818
Sample plugin to enable users to send data to the device-mode Intercom destination
1919

20-
- [Mixpanel](src/main/java/com/segment/analytics/destinations/plugins/MixpanelDestination.kt)
20+
- [Mixpanel](src/main/java/com/segment/analytics/kotlin/destinations/plugins/MixpanelDestination.kt)
2121
Sample plugin to enable users to send data to the device-mode Mixpanel destination
2222

23-
- [Webhook Plugin](src/main/java/com/segment/analytics/destinations/plugins/WebhookPlugin.kt)
23+
- [Webhook Plugin](src/main/java/com/segment/analytics/kotlin/destinations/plugins/WebhookPlugin.kt)
2424
An after plugin that allows you to send the event from the analytics timeline to a webhook of your choice. Ideal for debugging payloads in an internal network.

samples/kotlin-android-app-destinations/build.gradle

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010

1111
defaultConfig {
1212
multiDexEnabled true
13-
applicationId "com.segment.analytics.destinations"
13+
applicationId "com.segment.analytics.kotlin.destinations"
1414
minSdkVersion 21
1515
targetSdkVersion 31
1616
versionCode 3
@@ -54,23 +54,14 @@ dependencies {
5454

5555
// Partner Dependencies
5656
dependencies {
57-
// Mixpanel
58-
api 'com.mixpanel.android:mixpanel-android:5.8.7'
5957

6058
// Comscore
6159
api 'com.comscore:android-analytics:6.5.0'
6260

63-
// Firebase
64-
implementation platform('com.google.firebase:firebase-bom:28.2.1')
65-
implementation 'com.google.firebase:firebase-analytics-ktx'
66-
6761
// Intercom
6862
implementation 'io.intercom.android:intercom-sdk-base:10.1.1'
6963
implementation 'io.intercom.android:intercom-sdk-fcm:10.1.1'
7064

71-
// appsflyer
72-
implementation 'com.appsflyer:af-android-sdk:6.3.2'
73-
implementation 'com.android.installreferrer:installreferrer:2.2'
7465
}
7566

7667
// Test Dependencies

samples/kotlin-android-app-destinations/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.segment.analytics.destinations">
3+
package="com.segment.analytics.kotlin.destinations">
44

55
<!-- Required for internet. -->
66
<uses-permission android:name="android.permission.INTERNET" />

samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/MainApplication.kt

Lines changed: 0 additions & 69 deletions
This file was deleted.

samples/kotlin-android-app-destinations/src/main/java/com/segment/analytics/destinations/plugins/AmplitudeSession.kt

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)