Skip to content

Commit ce11757

Browse files
committed
- update the README.md
- removed brackets from gradle.properties
1 parent b4a5bd8 commit ce11757

File tree

3 files changed

+33
-14
lines changed

3 files changed

+33
-14
lines changed

README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,39 @@
22

33
Add Adjust device mode support to your applications via this plugin for [Analytics-Kotlin](https://github.com/segmentio/analytics-kotlin)
44

5-
Adjust integration for [analytics-android](https://github.com/segmentio/analytics-android).
5+
## Adding the dependency
6+
To install the Segment-Adjust integration, simply add this line to your gradle file:
67

8+
```
9+
implementation 'com.segment.analytics.kotlin.destinations:adjust:<latest_version>'
10+
```
711

8-
## Getting Started
9-
// TODO
12+
Or the following for Kotlin DSL
1013

14+
```
15+
implementation("com.segment.analytics.kotlin.destinations:adjust:<latest_version>")
16+
```
1117

12-
## Adding the dependency
13-
To install the Segment-Adjust integration, simply add this line to your gradle file:
14-
// TODO
18+
19+
## Using the Plugin in your App
20+
21+
Open the file where you setup and configure the Analytics-Kotlin library. Add this plugin to the list of imports.
22+
23+
```
24+
import com.segment.analytics.kotlin.destinations.adjust.AdjustDestination
25+
```
26+
27+
Just under your Analytics-Kotlin library setup, call `analytics.add(plugin = ...)` to add an instance of the plugin to the Analytics timeline.
28+
29+
```
30+
analytics = Analytics("<YOUR WRITE KEY>", applicationContext) {
31+
this.flushAt = 3
32+
this.trackApplicationLifecycleEvents = true
33+
}
34+
analytics.add(plugin = AdjustDestination())
35+
```
36+
37+
Your events will now begin to flow to Adjust in device mode.
1538

1639

1740
## Support
@@ -22,9 +45,6 @@ Please use Github issues, Pull Requests, or feel free to reach out to our [suppo
2245

2346
Interested in integrating your service with us? Check out our [Partners page](https://segment.com/partners/) for more details.
2447

25-
26-
27-
2848
Please see [our documentation](https://segment.com/docs/integrations/adjust/) for more information.
2949

3050
## License

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ POM_ARTIFACT_ID=adjust
3030
POM_NAME=adjust
3131
POM_DESCRIPTION=Destination plugin for Adjust
3232

33-
POM_URL=https://github.com/segmentio/<analytics-kotlin-destination>
34-
POM_SCM_URL=https://github.com/segmentio/<analytics-kotlin-destination>
35-
POM_SCM_CONNECTION=scm:git:git://github.com/segmentio/<analytics-kotlin-destination>.git
36-
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/segmentio/<analytics-kotlin-destination>.git
33+
POM_URL=https://github.com/segmentio/analytics-kotlin-adjust
34+
POM_SCM_URL=https://github.com/segmentio/analytics-kotlin-adjust
35+
POM_SCM_CONNECTION=scm:git:git://github.com/segmentio/analytics-kotlin-adjust.git
36+
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/segmentio/analytics-kotlin-adjust.git
3737

3838
POM_LICENCE_NAME=The MIT License (MIT)
3939
POM_LICENCE_URL=http://opensource.org/licenses/MIT

lib/src/main/java/com/segment/analytics/kotlin/destinations/adjust/AdjustDestination.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class AdjustDestination(
6565
}
6666
}
6767
}
68-
6968
}
7069

7170
override fun identify(payload: IdentifyEvent): BaseEvent? {

0 commit comments

Comments
 (0)