Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @VisibleForTesting
- public Uri buildDeepLink(@NonNull Uri deepLink, int minVersion, boolean isAd) {
- // Get the unique appcode for this app.
- String appCode = "kg967;
- // Get this app's package name.
- String packageName = getApplicationContext().getPackageName();
- // Build the link with all required parameters
- Uri.Builder builder = new Uri.Builder()
- .scheme("https")
- .authority(appCode + ".app.goo.gl")
- .path("/")
- .appendQueryParameter("link", "http://duka.io")//deep link url
- .appendQueryParameter("referrer", asp.getBusinessUserName())
- .appendQueryParameter("apn", packageName);
- // Return the completed deep link.
- return builder.build();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement