Skip to content

Commit cfa0fc5

Browse files
committed
- updated README.md, gradle.properties, AndroidManifest.xml
- created AdjustDestination.kt
1 parent a00cae5 commit cfa0fc5

File tree

4 files changed

+18
-22
lines changed

4 files changed

+18
-22
lines changed

README.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
// add badges and stuff here
1+
# Analytics-Kotlin Adjust
22

3-
# Destination
3+
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).
6+
7+
8+
// TODO
59
## Getting Started
610

7-
1. Create repo from this template. The name of the repo should follow this pattern `project-language-destination`. For example `analytics-kotlin-firebase`
8-
2. In `settings.gralde.kts`, change `rootProject.name` to match your repo name.
9-
3. In `gradle.properties`, update the fields with `<>` brackets
10-
4. Delete `com.segment.analytics.kotlin.destinations.Destination.kt`
11-
5. Create a directory with the destination name under `com.segment.analytics.kotlin.destinations`. For example Firebase, `com.segment.analytics.kotlin.destinations.firebase`
12-
6. Create your destination class under the directory created in step 5. For example Firebase, `com.segment.analytics.kotlin.destinations.firebase.Firebase.kt`
13-
7. update Android manifest with your package name. For example Firebase
14-
```xml
15-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
16-
package="com.segment.analytics.kotlin.destinations.firebase">
17-
```
18-
8. Implement destination
19-
9. Add tests
11+
## Adding the dependency
12+
To install the Segment-Amplitude integration, simply add this line to your gradle file:
2013

2114

2215
## License

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ kotlin.code.style=official
2323
# Deployment variables
2424
GROUP=com.segment.analytics.kotlin.destinations
2525

26-
VERSION_CODE=<100>
27-
VERSION_NAME=<1.0.0>
26+
VERSION_CODE=100
27+
VERSION_NAME=1.0.0
2828

29-
POM_ARTIFACT_ID=<destination>
30-
POM_NAME=<destination>
31-
POM_DESCRIPTION=<Destination Description>
29+
POM_ARTIFACT_ID=adjust
30+
POM_NAME=adjust
31+
POM_DESCRIPTION=Destination plugin for Adjust
3232

3333
POM_URL=https://github.com/segmentio/<analytics-kotlin-destination>
3434
POM_SCM_URL=https://github.com/segmentio/<analytics-kotlin-destination>

lib/src/main/AndroidManifest.xml

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

54
</manifest>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.segment.analytics.kotlin.destinations.adjust
2+
3+
class AdjustDestination {
4+
}

0 commit comments

Comments
 (0)