Skip to content

Commit

Permalink
Update dappbrowser test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSmartCell committed Dec 1, 2024
1 parent 6976cd1 commit d12b914
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import static com.alphawallet.app.util.Helper.waitUntilLoaded;
import static junit.framework.TestCase.assertTrue;

import static org.hamcrest.core.IsNot.not;

import android.view.KeyEvent;

import androidx.annotation.NonNull;
Expand All @@ -36,7 +34,7 @@
public class DappBrowserTest extends BaseE2ETest
{
private static final String DEFAULT_HOME_PAGE = "https://tlink.store/tapp?chain=84532&contract=0xb02082b18f74ab3853b6a11e5f487be4322167db&tokenId=6";
private static final String URL_DAPP = "https://superrare.com/explore/releases";
private static final String URL_DAPP = "https://rarible.com/explore/all/collections";

@Override
@Before
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/assets/dapps_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{"name": "Tbull", "description": "A Utility Token on Binance Smart Chain for Payments for Services", "url": "https://tbull.live", "category": "Utility"},
{"name": "Rare Coin", "description": "Free Crypto Faucet & Yield Farming", "url": "https://make.rare.claims", "category": "Tool"},
{"name": "DeFiBox", "description": "one-stop DeFi asset, data and protocols aggregation platform", "url": "https://www.defibox.com/index?utm_source=2189969", "category": "Tool"},
{"name": "Rarible", "description": "Peer-to-peer marketplace for scarce digital goods", "url": "https://rarible.com/", "category": "Marketplace"},
{"name": "TokenSets", "description": "Enhance your portfolio with automated asset management strategies.", "url": "https://www.tokensets.com/", "category": "Finance"},
{"name": "State of the ÐApps", "description": "Directory of Decentralized Applications", "url": "https://www.stateofthedapps.com/", "category": "Directory"},
{"name": "BulkSender", "description": "Batch sending of tokens", "url": "https://bulksender.app/", "category": "Finance"},
Expand All @@ -22,8 +23,7 @@
{"name": "MLB Crypto Baseball", "description": "Baseball collectible game", "url": "https://mlbcryptobaseball.com", "category": "Game"},
{"name": "Name Bazaar", "description": "A peer-to-peer marketplace for the exchange of names registered via the ENS", "url": "https://namebazaar.io/", "category": "Marketplace"},
{"name": "OpenSea", "description": "Peer-to-peer marketplace for scarce digital goods", "url": "https://opensea.io", "category": "Marketplace"},
{"name": "SuperRare", "description": "Collect art or submit your art as a creator", "url": "https://superrare.co/", "category": "Marketplace"},
{"name": "Veil", "description": "A peer-to-peer trading platform for prediction markets and derivatives", "url": "https://app.veil.co/", "category": "Marketplace"},
{"name": "Veil", "description": "A peer-to-peer trading platform for prediction markets and derivatives", "url": "https://app.veil.co/", "category": "Marketplace"},
{"name": "Gravity", "description": "Create your gravatar.", "url": "https://gravity.cool/", "category": "Property"},
{"name": "Mokens", "description": "Create your own collectibles", "url": "https://mokens.io/", "category": "Property"},
{"name": "TENZ-ID", "description": "TENZ-ID is a Decentralized Blockchain naming system", "url": "https://tenzorum.org/tenz_id/", "category": "Property"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public FinishReceiver(Activity ctx)
register(ctx);
}

public FinishReceiver()
{
activity = null;
broadcastManager = null;
}

private void register(Activity ctx)
{
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ public HomeReceiver(Context context, HomeCommsInterface homeCommsInterface)
this.homeCommsInterface = homeCommsInterface;
}

public HomeReceiver()
{
homeCommsInterface = null;
broadcastManager = null;
}

@Override
public void onReceive(Context context, Intent intent)
{
Expand Down

0 comments on commit d12b914

Please sign in to comment.