Skip to content

Commit 9e50a32

Browse files
authored
Merge pull request #1 from segment-integrations/initial_readme_changes
initial_readme_changes
2 parents 1adb6c9 + c781793 commit 9e50a32

File tree

8 files changed

+83
-128
lines changed

8 files changed

+83
-128
lines changed

README.md

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,50 @@
1-
// add badges and stuff here
2-
3-
# Destination
4-
5-
## Getting Started
6-
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
1+
# Analytics-Kotlin Quantcast
2+
3+
Add Quantcast support to your applications via this plugin for [Analytics-Kotlin](https://github.com/segmentio/analytics-kotlin)
4+
5+
## Adding the dependency
6+
To install the Segment-Quantcast integration, simply add this line to your gradle file:
7+
8+
```
9+
implementation 'com.segment.analytics.kotlin.destinations:quantcast:<latest_version>'
10+
```
11+
12+
Or the following for Kotlin DSL
13+
14+
```
15+
implementation("com.segment.analytics.kotlin.destinations:quantcast:<latest_version>")
16+
```
17+
18+
## Using the Plugin in your App
19+
20+
Open the file where you setup and configure the Analytics-Kotlin library. Add this plugin to the list of imports.
21+
22+
```
23+
import com.segment.analytics.kotlin.destinations.quantcast.QuantcastDestination
24+
```
25+
26+
Just under your Analytics-Kotlin library setup, call `analytics.add(plugin = ...)` to add an instance of the plugin to the Analytics timeline.
27+
28+
```
29+
analytics = Analytics("<YOUR WRITE KEY>", applicationContext) {
30+
this.flushAt = 3
31+
this.trackApplicationLifecycleEvents = true
32+
}
33+
analytics.add(plugin = QuantcastDestination())
34+
```
35+
36+
Your events will now begin to flow to Quantcast in device mode.
37+
38+
39+
## Integrating with Segment
40+
41+
Interested in integrating your service with us? Check out our [Partners page](https://segment.com/partners/) for more details.
42+
Please see [our documentation](https://segment.com/docs/connections/destinations/catalog/quantcast/) for more information.
43+
44+
45+
## Support
46+
47+
Please use Github issues, Pull Requests, or feel free to reach out to our [support team](https://segment.com/help/).
2048

2149

2250
## License

gradle.properties

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ 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=quantcast
30+
POM_NAME=quantcast
31+
POM_DESCRIPTION=Destination for Quantcast
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-integraion-quantcast
34+
POM_SCM_URL=https://github.com/segmentio/analytics-kotlin-integraion-quantcast
35+
POM_SCM_CONNECTION=scm:git:git://github.com/segmentio/analytics-kotlin-integraion-quantcast.git
36+
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/segmentio/analytics-kotlin-integraion-quantcast.git
3737

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

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.quantcast">
43

54
</manifest>

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

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.segment.analytics.kotlin.destinations.quantcast
2+
3+
import com.segment.analytics.kotlin.core.platform.DestinationPlugin
4+
5+
class QuantcastDestination: DestinationPlugin() {
6+
companion object {
7+
private const val QUANTCAST_FULL_KEY = "quantcast"
8+
}
9+
override val key: String = QUANTCAST_FULL_KEY
10+
}

lib/src/test/kotlin/com/segment/analytics/kotlin/destinations/matchers/MyDestinationTests.kt

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.segment.analytics.kotlin.destinations.quantcast
2+
3+
import org.junit.Before
4+
import org.junit.runner.RunWith
5+
import org.robolectric.RobolectricTestRunner
6+
import org.robolectric.annotation.Config
7+
8+
@RunWith(RobolectricTestRunner::class)
9+
@Config(manifest = Config.NONE)
10+
class QuantcastDestinationTests {
11+
@Before
12+
fun setUp() {
13+
14+
}
15+
}

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
rootProject.name = "analytics-kotlin-destination-template"
1+
rootProject.name = "analytics-kotlin-integration-quantcast"
22
include(":lib")
33
includeBuild("publishing-plugins")
44
include(":testapp")

0 commit comments

Comments
 (0)