airbnb / airbnb/DeepLinkDispatch

DeepLink Error: Dee3p link to non-existent method on Production

Open
#287 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
4.4k
Forks
414
PR merge metrics
No merged PRs in 30d

Description

Our app links and deeplinks work on a dev build. However once we test a production build, non of the deeplink or applinks work.

We instead get an error that is caught by our `DeepLinkReceiver`

The following error message is logged when trying to launch a deeplink.

### Error Stacktrace
`E/DeepLinkReceiver:15: DeepLink Error: Dee3p link to non-existent method: createExploreIntent ` _(We called a deeplink that goes to an explore page in this example)_

I suspect this issue might be with our pro guard rules?

**Our Pro Guard Rules**
```# DeepLinkDispatch
-keep class com.airbnb.deeplinkdispatch.** { *; }
-keep @interface com.getsomeheadspace.android.common.deeplink.HeadspaceAppLink
-keep @interface com.getsomeheadspace.android.common.deeplink.HeadspaceDeepLink
-keepclasseswithmembers class * {
@com.airbnb.deeplinkdispatch.DeepLink ;
@com.getsomeheadspace.android.common.deeplink.HeadspaceAppLink ;
@com.getsomeheadspace.android.common.deeplink.HeadspaceDeepLink ;
}

Contributor guide

Open the contributing guide

Research direction

Start with DeepLinkReceiver and the generated handling for createExploreIntent, then compare the development and production builds. Review the provided ProGuard rules and verify whether annotated deep-link methods remain available after production shrinking. Done means deeplinks and applinks resolve successfully in a production build without the non-existent-method error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.