You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/mobile/kotlin-android/index.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ To get started with the Analytics-Kotlin mobile library:
25
25
2. Search for **Kotlin (Android)** and click **Add source**.
26
26
2. Add the Analytics dependency to your build.gradle.
27
27
28
-
Segment recommends you to install the library with a build system like Gradle, as it simplifies the process of upgrading versions and adding integrations. The library is distributed through [Maven Central](https://repo1.maven.org/maven2/com/segment/analytics/kotlin/android/){:target="_blank"}. Add the analytics module to your build.gradle as a dependency as shown in the code sample below, and replace `<latest_version>` with the latest version listed in our[releases page](https://github.com/segmentio/analytics-kotlin/releases){:target="_blank"}
28
+
Segment recommends you to install the library with a build system like Gradle, as it simplifies the process of upgrading versions and adding integrations. The library is distributed through [Maven Central](https://repo1.maven.org/maven2/com/segment/analytics/kotlin/android/){:target="_blank"}. Add the analytics module to your build.gradle as a dependency as shown in the code sample below, and replace `<latest_version>` with the latest version listed on Segment's[releases page](https://github.com/segmentio/analytics-kotlin/releases){:target="_blank"}
29
29
30
30
```
31
31
repositories {
@@ -51,10 +51,8 @@ To get started with the Analytics-Kotlin mobile library:
51
51
}
52
52
```
53
53
54
-
> warning ""
55
-
> **Note:** In android, application context is required to pass as the second parameter, or an error `Using JVM Analytics initializer in Android platform. Context is required in constructor!` will be thrown out.
56
-
57
-
Automatically tracking lifecycle events (`Application Opened`, `Application Installed`, `Application Updated`) is optional, but Segment highly recommends you to configure these options in order to track core events.
54
+
**Note:** If you're on an Android platform, you must add the application context as the second parameter.
55
+
<br>Automatically tracking lifecycle events (`Application Opened`, `Application Installed`, `Application Updated`) is optional, but Segment highly recommends you to configure these options in order to track core events.
58
56
59
57
<br>**Note:** Unlike the Analytics-Android SDK, the Analytics-Kotlin SDK doesn’t provide a singleton instance and relies on you to keep track of the instance.
60
58
@@ -86,11 +84,9 @@ To get started with the Analytics-Kotlin mobile library:
The SDK internally uses a number of Java 8 language APIs through desugaring. Please make sure your project:
92
-
* either enables desugaring (see how to enable it [here](https://developer.android.com/studio/write/java8-support#library-desugaring))
93
-
* or requires a minimum API level of 26.
89
+
The SDK internally uses a number of Java 8 language APIs through desugaring. Make sure your project either [enables desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring)) or requires a minimum API level of 26.
0 commit comments