Skip to content

Commit

Permalink
Removed unnecessary fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Jul 26, 2023
1 parent 52c82fe commit e952956
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ public ServerRequestCreateUrl(Context context, final String alias, final int typ

linkPost_ = new BranchLinkData();
try {
linkPost_.put(Defines.Jsonkey.RandomizedBundleToken.getKey(), prefHelper_.getRandomizedBundleToken());
linkPost_.put(Defines.Jsonkey.RandomizedDeviceToken.getKey(), prefHelper_.getRandomizedDeviceToken());
linkPost_.put(Defines.Jsonkey.SessionID.getKey(), prefHelper_.getSessionID());
if (!prefHelper_.getLinkClickID().equals(PrefHelper.NO_STRING_VALUE)) {
linkPost_.put(Defines.Jsonkey.LinkClickID.getKey(), prefHelper_.getLinkClickID());
}
Expand All @@ -88,11 +85,15 @@ public ServerRequestCreateUrl(Context context, final String alias, final int typ

setPost(linkPost_);

//Remove unnecessary fields
linkPost_.remove("anon_id");
linkPost_.remove("is_hardware_id_real");
linkPost_.remove("hardware_id");

} catch (JSONException ex) {
ex.printStackTrace();
constructError_ = true;
}

}

public ServerRequestCreateUrl(Defines.RequestPath requestPath, JSONObject post, Context context) {
Expand Down

0 comments on commit e952956

Please sign in to comment.