From 8ee0f3ad3ef1dd69e6b97bc786cffcc2dd1883e1 Mon Sep 17 00:00:00 2001 From: Kenny Hu Date: Tue, 25 Feb 2025 11:56:57 -0500 Subject: [PATCH] add R8 instructions --- cspell.json | 3 +++ docs/sdk/android.mdx | 2 ++ 2 files changed, 5 insertions(+) diff --git a/cspell.json b/cspell.json index becdedcfa..edfc582f8 100644 --- a/cspell.json +++ b/cspell.json @@ -79,5 +79,8 @@ "/^\\s*```[\\s\\S]*?^\\s*```/gm", "/.*enc:.*/", "/.*enc6:.*/" + ], + "words": [ + "proguard" ] } diff --git a/docs/sdk/android.mdx b/docs/sdk/android.mdx index cec84e087..38b87b241 100644 --- a/docs/sdk/android.mdx +++ b/docs/sdk/android.mdx @@ -58,6 +58,8 @@ As an alternative to Google Play Services, the SDK also optionally supports [Hua The SDK currently supports API level `16` or above. +If you are building the app with R8, you may encounter `Missing classes detected while running R8` errors. This can be resolved by adding the autogenerated missing rules from `.../android/app/build/outputs/mapping/release/missing_rules.txt` to the `proguard` rules. + ## Initialize SDK When your app starts, in application `onCreate()`, initialize the SDK with your publishable API key, found on the [Settings page](https://radar.com/dashboard/settings).