Skip to content

Commit e02d4b7

Browse files
authored
Merge pull request #4667 from segmentio/wenxi/update-kotlin-desugaring-info
update kotlin desugaring info
2 parents e560e34 + f88da79 commit e02d4b7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/connections/sources/catalog/libraries/mobile/kotlin-android/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ To get started with the Analytics-Kotlin mobile library:
149149

150150
5. Enable Java 8+ API desugaring.
151151

152-
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.
152+
If you're on a version prior to `1.10.4`, the SDK internally uses a number of Java 8 language APIs through desugaring, which requires you to either [enable desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring), have a minimum API level of 26, or upgrade to the latest version. If you're on version `1.10.4` and above, you don't need desugaring.
153153
154154
> info ""
155155
> You'll find configuration options such as IDFA collection and automatic screen tracking in Segment’s [Plugin Examples repository](https://github.com/segmentio/analytics-kotlin/tree/main/samples/kotlin-android-app/src/main/java/com/segment/analytics/next/plugins){:target="_blank"}.

src/connections/sources/catalog/libraries/mobile/kotlin-android/kotlin-android-faq.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ Yes. Please refer to the [Java Compatibility](https://github.com/segmentio/analy
4747

4848
## My app crashes with NoClassDefFoundError Failed resolution of: Ljava/time/Instant
4949

50-
The SDK internally uses a number of Java 8 language API through desugaring (see [Java 8+ API](https://developer.android.com/studio/write/java8-support#library-desugaring) desugaring support). Please make sure your project:
50+
If you're on a version prior to `1.10.4`, the SDK internally uses a number of Java 8 language APIs through desugaring (see [Java 8+ API](https://developer.android.com/studio/write/java8-support#library-desugaring) desugaring support). Please make sure your project either uses Android Gradle plugin 4.0.0 or higher, has a minimum API level of 26, or is upgraded to the latest SDK.
5151

52-
- either uses Android Gradle plugin 4.0.0 or higher
53-
- or requires a minimum API level of 26.
5452

5553
## My deeplinks are not tracked?
5654

0 commit comments

Comments
 (0)