BranchMetrics / web-branch-deep-linking-attribution

The Branch Web SDK for deep linking and attribution. Once initialized, the Branch Web SDK allows you to create and share links with a banner (web only), over SMS, or your own methods by generating deep links. It also offers event tracking, access to referrals, and management of credits.
https://help.branch.io/developers-hub/docs/web-sdk-overview
MIT License
287 stars 101 forks source link

feat(SDK-2237): add setAPIUrl getAPIUrl public methods #990

Closed JagadeeshKaricherla-branch closed 4 months ago

JagadeeshKaricherla-branch commented 4 months ago

add setAPIUrl getAPIUrl public methods, unit tests

setAPIUrl : Sets a custom base URL for all calls to the Branch API

getAPIUrl : returns the base URL for all calls to the Branch API

usage :

branch.setAPIUrl("https://api.branch.io");

branch.getAPIUrl();

Fixes # (issue) : SDK-2237

Type of change : feature

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

JS Budget Check

Please mention the size in kb before abd after this PR

Files Before After
dist/build.js.
dist/build.min.js

Checklist:

Mentions:

List the person or team responsible for reviewing proposed changes.

cc @BranchMetrics/saas-sdk-devs for visibility.

github-actions[bot] commented 4 months ago

Test Results

  1 files  ± 0    1 suites  ±0   48s :stopwatch: -1s 154 tests +16  147 :white_check_mark: +16  7 :zzz: ±0  0 :x: ±0  155 runs  +17  148 :white_check_mark: +17  7 :zzz: ±0  0 :x: ±0 

Results for commit 74613e27. ± Comparison against base commit 1baa24ae.

:recycle: This comment has been updated with latest results.