This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
the main point is to put javascript code in such a way that nextjs will not get it through build process and it is only loaded scripts if it is on webview aka Android application.
take a look at _app.tsx
if (window.AdTraceBridge) { // check if webView