wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Build failures, how to build APK inside linux container?

Open emanuelb opened this issue 4 years ago • 4 comments

Tried to build the version: 12.6.4 and check if the build is reproducible (compare to app downloaded from google-play) & if not what the diff are, but failed to build the app.

Containerfile used:

FROM ubuntu:rolling

RUN set -ex; \
    mkdir -p /usr/share/man/man1/; \
    apt-get update; \
    DEBIAN_FRONTEND=noninteractive apt-get install --yes -o APT::Install-Suggests=false --no-install-recommends \
        npm \
        git \
        wget \
        unzip \
        gradle \
        python2 \
        make \
        g++ \        
        openjdk-8-jdk ; \
    rm -rf /var/lib/apt/lists/*; \
    useradd -ms /bin/bash appuser;

USER appuser

ENV ANDROID_SDK_ROOT="/home/appuser/app/sdk" \
    ANDROID_HOME="/home/appuser/app/sdk" \
    NODE_ENV="development"

RUN set -ex; \
    mkdir -p "/home/appuser/app/sdk/licenses" "/home/appuser/app/bitpay/"; \
    printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > "/home/appuser/app/sdk/licenses/android-sdk-license"; \
    cd /home/appuser/app/bitpay/; \
    wget https://github.com/bitpay/wallet/archive/refs/tags/v12.6.4.zip; \
    unzip v12.6.4.zip; \
    git clone https://github.com/bitpay/wallet/; \
    cd /home/appuser/app/bitpay/wallet-12.6.4;

compile with: podman build --pull --rm -t bitpay_build_apk_new -f Containerfile

Run with: podman run --rm --name bitpay_build_apk -ti bitpay_build_apk

in container running npm install or npm ci or npm audit fix will fail with error:

npm ERR! ../src/create_string.cpp:17:37: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>&)'
npm ERR!    17 |   v8::String::Utf8Value string(value);
npm ERR!       |                                     ^
npm ERR! In file included from /home/appuser/.node-gyp/12.21.0/include/node/node.h:67,
npm ERR!                  from ../../nan/nan.h:56,
npm ERR!                  from ../src/create_string.cpp:1:
npm ERR! /home/appuser/.node-gyp/12.21.0/include/node/v8.h:3135:5: note: candidate: 'v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)'
npm ERR!  3135 |     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!       |     ^~~~~~~~~
npm ERR! /home/appuser/.node-gyp/12.21.0/include/node/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
npm ERR! make: *** [binding.target.mk:129: Release/obj.target/binding/src/create_string.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/appuser/app/bitpay/wallet-12.6.4/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm ERR! gyp ERR! System Linux 5.12.15-300.fc34.x86_64
npm ERR! gyp ERR! command "/usr/bin/node" "/home/appuser/app/bitpay/wallet-12.6.4/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd /home/appuser/app/bitpay/wallet-12.6.4/node_modules/node-sass
npm ERR! gyp ERR! node -v v12.21.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok 
npm ERR! Build failed with error code: 1

emanuelb avatar Jul 21 '21 15:07 emanuelb

I'm also interested in this

psavva avatar Dec 04 '21 12:12 psavva

Use Node v10.16.2

CybitsBlockchain avatar Dec 31 '21 12:12 CybitsBlockchain

@CybitsBlockchain Building with Node v10.16.2 fail on latest version v12.11.3 as well, can you tell what the steps are after running the container:

FROM node:10.16.2-slim

RUN set -ex; \
    mkdir -p /usr/share/man/man1/; \
    apt-get update; \
    DEBIAN_FRONTEND=noninteractive apt-get install --yes -o APT::Install-Suggests=false --no-install-recommends \
        git; \
    rm -rf /var/lib/apt/lists/*; \
    useradd -ms /bin/bash appuser;

USER appuser

ENV ANDROID_SDK_ROOT="/home/appuser/app/sdk" \
    ANDROID_HOME="/home/appuser/app/sdk" \
    NODE_ENV="development"

RUN set -ex; \
    mkdir -p "/home/appuser/app/sdk/licenses" "/home/appuser/app/bitpay/"; \
    printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > "/home/appuser/app/sdk/licenses/android-sdk-license"; \
    cd /home/appuser/app/bitpay/; \
    git clone https://github.com/bitpay/wallet/; \
    cd wallet; \
    git checkout v12.11.3;

WORKDIR /home/appuser/app/bitpay/wallet

cause running additional RUN command:

# json taken from https://github.com/blockchain/My-Wallet-V3-Android/blob/75ebe718cb99c6d302efb90447f1719973deb93f/scripts/quick_start.sh#L7-L46
RUN set -ex; \
    echo "{
  \"project_info\": {
    \"project_number\": \"623252783566\",
    \"firebase_url\": \"https://blockchaintest-ecd1c.firebaseio.com\",
    \"project_id\": \"blockchaintest-ecd1c\",
    \"storage_bucket\": \"blockchaintest-ecd1c.appspot.com\"
  },
  \"client\": [
    {
      \"client_info\": {
        \"mobilesdk_app_id\": \"1:623252783566:android:02baff6e6c46ed96232b9f\",
        \"android_client_info\": {
          \"package_name\": \"com.bitpay.wallet\"
        }
      },
      \"oauth_client\": [
        {
          \"client_id\": \"623252783566-o6j47jlpan97fnibnr0vosvc4lh71sm1.apps.googleusercontent.com\",
          \"client_type\": 3
        }
      ],
      \"api_key\": [
        {
          \"current_key\": \"INSERT KEY HERE\"
        }
      ],
      \"services\": {
        \"appinvite_service\": {
          \"other_platform_oauth_client\": [
            {
              \"client_id\": \"623252783566-o6j47jlpan97fnibnr0vosvc4lh71sm1.apps.googleusercontent.com\",
              \"client_type\": 3
            }
          ]
        }
      }
    }
  ],
  \"configuration_version\": \"1\"
}" > /home/appuser/app/bitpay/wallet/google-services.json; \
    npm install @ionic/cli; \
    npm run apply:bitpay; \
    npm run prepare:bitpay;

and then running npm run final:android result in:

> ionic-app-scripts build --aot --target cordova --platform android
[20:32:37]  ionic-app-scripts 3.2.3 
[20:32:37]  build dev started ... 
[20:32:38]  clean started ... 
[20:32:38]  clean finished in 2 ms 
[20:32:38]  copy started ... 
[20:32:38]  deeplinks started ... 
[20:32:39]  deeplinks finished in 902 ms 
[20:32:39]  ngc started ... 
[20:32:59]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            '{' or ';' expected. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;
       L7:  export declare function isIOS(): boolean;

[20:32:59]  typescript: node_modules/bitcore-wallet-client/ts_build/lib/key.d.ts, line: 3 
            Invalid character. 

       L2:  export declare class Key {
       L3:      #private;
       L4:      id: any;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 3 
            Initializers are not allowed in ambient contexts. 

       L2:  declare class Connector implements IConnector {
       L3:      readonly protocol = "wc";
       L4:      readonly version = 1;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 4 
            Initializers are not allowed in ambient contexts. 

       L3:  readonly protocol = "wc";
       L4:  readonly version = 1;
       L5:  private _bridge;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 26 
            An accessor cannot be declared in an ambient context. 

      L25:  constructor(opts: IConnectorOpts);
      L26:  set bridge(value: string);
      L27:  get bridge(): string;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 27 
            An accessor cannot be declared in an ambient context. 

      L26:  set bridge(value: string);
      L27:  get bridge(): string;
      L28:  set key(value: string);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 28 
            An accessor cannot be declared in an ambient context. 

      L27:  get bridge(): string;
      L28:  set key(value: string);
      L29:  get key(): string;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 29 
            An accessor cannot be declared in an ambient context. 

      L28:  set key(value: string);
      L29:  get key(): string;
      L30:  set clientId(value: string);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 30 
            An accessor cannot be declared in an ambient context. 

      L29:  get key(): string;
      L30:  set clientId(value: string);
      L31:  get clientId(): string;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 31 
            An accessor cannot be declared in an ambient context. 

      L30:  set clientId(value: string);
      L31:  get clientId(): string;
      L32:  set peerId(value: string);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 32 
            An accessor cannot be declared in an ambient context. 

      L31:  get clientId(): string;
      L32:  set peerId(value: string);
      L33:  get peerId(): string;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 33 
            An accessor cannot be declared in an ambient context. 

      L32:  set peerId(value: string);
      L33:  get peerId(): string;
      L34:  set clientMeta(value: IClientMeta | null);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 34 
            An accessor cannot be declared in an ambient context. 

      L33:  get peerId(): string;
      L34:  set clientMeta(value: IClientMeta | null);
      L35:  get clientMeta(): IClientMeta | null;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 35 
            An accessor cannot be declared in an ambient context. 

      L34:  set clientMeta(value: IClientMeta | null);
      L35:  get clientMeta(): IClientMeta | null;
      L36:  set peerMeta(value: IClientMeta | null);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 36 
            An accessor cannot be declared in an ambient context. 

      L35:  get clientMeta(): IClientMeta | null;
      L36:  set peerMeta(value: IClientMeta | null);
      L37:  get peerMeta(): IClientMeta | null;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 37 
            An accessor cannot be declared in an ambient context. 

      L36:  set peerMeta(value: IClientMeta | null);
      L37:  get peerMeta(): IClientMeta | null;
      L38:  set handshakeTopic(value: string);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 38 
            An accessor cannot be declared in an ambient context. 

      L37:  get peerMeta(): IClientMeta | null;
      L38:  set handshakeTopic(value: string);
      L39:  get handshakeTopic(): string;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 39 
            An accessor cannot be declared in an ambient context. 

      L38:  set handshakeTopic(value: string);
      L39:  get handshakeTopic(): string;
      L40:  set handshakeId(value: number);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 40 
            An accessor cannot be declared in an ambient context. 

      L39:  get handshakeTopic(): string;
      L40:  set handshakeId(value: number);
      L41:  get handshakeId(): number;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 41 
            An accessor cannot be declared in an ambient context. 

      L40:  set handshakeId(value: number);
      L41:  get handshakeId(): number;
      L42:  get uri(): string;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 42 
            An accessor cannot be declared in an ambient context. 

      L41:  get handshakeId(): number;
      L42:  get uri(): string;
      L43:  set uri(value: string);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 43 
            An accessor cannot be declared in an ambient context. 

      L42:  get uri(): string;
      L43:  set uri(value: string);
      L44:  set chainId(value: number);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 44 
            An accessor cannot be declared in an ambient context. 

      L43:  set uri(value: string);
      L44:  set chainId(value: number);
      L45:  get chainId(): number;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 45 
            An accessor cannot be declared in an ambient context. 

      L44:  set chainId(value: number);
      L45:  get chainId(): number;
      L46:  set networkId(value: number);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 46 
            An accessor cannot be declared in an ambient context. 

      L45:  get chainId(): number;
      L46:  set networkId(value: number);
      L47:  get networkId(): number;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 47 
            An accessor cannot be declared in an ambient context. 

      L46:  set networkId(value: number);
      L47:  get networkId(): number;
      L48:  set accounts(value: string[]);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 48 
            An accessor cannot be declared in an ambient context. 

      L47:  get networkId(): number;
      L48:  set accounts(value: string[]);
      L49:  get accounts(): string[];

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 49 
            An accessor cannot be declared in an ambient context. 

      L48:  set accounts(value: string[]);
      L49:  get accounts(): string[];
      L50:  set rpcUrl(value: string);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 50 
            An accessor cannot be declared in an ambient context. 

      L49:  get accounts(): string[];
      L50:  set rpcUrl(value: string);
      L51:  get rpcUrl(): string;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 51 
            An accessor cannot be declared in an ambient context. 

      L50:  set rpcUrl(value: string);
      L51:  get rpcUrl(): string;
      L52:  set connected(value: boolean);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 52 
            An accessor cannot be declared in an ambient context. 

      L51:  get rpcUrl(): string;
      L52:  set connected(value: boolean);
      L53:  get connected(): boolean;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 53 
            An accessor cannot be declared in an ambient context. 

      L52:  set connected(value: boolean);
      L53:  get connected(): boolean;
      L54:  set pending(value: boolean);

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 54 
            An accessor cannot be declared in an ambient context. 

      L53:  get connected(): boolean;
      L54:  set pending(value: boolean);
      L55:  get pending(): boolean;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 55 
            An accessor cannot be declared in an ambient context. 

      L54:  set pending(value: boolean);
      L55:  get pending(): boolean;
      L56:  get session(): {

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 56 
            An accessor cannot be declared in an ambient context. 

      L55:  get pending(): boolean;
      L56:  get session(): {
      L57:      connected: boolean;

[20:32:59]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 69 
            An accessor cannot be declared in an ambient context. 

      L68:  };
      L69:  set session(value: {
      L70:      connected: boolean;

[20:32:59]  typescript: node_modules/detect-browser/index.d.ts, line: 13 
            Initializers are not allowed in ambient contexts. 

      L12:      readonly type = "browser";
      L13:      constructor(name: Browser, version: string, os: OperatingSystem | null);

[20:32:59]  typescript: node_modules/detect-browser/index.d.ts, line: 18 
            Initializers are not allowed in ambient contexts. 

      L17:  readonly type = "node";
      L18:  readonly name: 'node';
      L19:  readonly os: NodeJS.Platform;

[20:32:59]  typescript: node_modules/detect-browser/index.d.ts, line: 28 
            Initializers are not allowed in ambient contexts. 

      L27:      readonly type = "bot-device";
      L28:      constructor(name: Browser, version: string, os: OperatingSystem | null, bot: string);

[20:32:59]  typescript: node_modules/detect-browser/index.d.ts, line: 32 
            Initializers are not allowed in ambient contexts. 

      L31:  readonly type = "bot";
      L32:  readonly bot: true;  
      L33:  readonly name: 'bot';

[20:32:59]  typescript: node_modules/detect-browser/index.d.ts, line: 39 
            Initializers are not allowed in ambient contexts. 

      L38:  readonly type = "react-native";
      L39:  readonly name: 'react-native';
      L40:  readonly version: null;

[20:32:59]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            Cannot find name 'import'. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;
       L7:  export declare function isIOS(): boolean;

[20:32:59]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            Property 'OperatingSystem' does not exist on type '"detect-browser"'. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;               
       L7:  export declare function isIOS(): boolean;

[20:32:59]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            Property 'Platform' does not exist on type 'typeof NodeJS'. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;        
       L7:  export declare function isIOS(): boolean;

[20:32:59]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            Object is possibly 'undefined'. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;         
       L7:  export declare function isIOS(): boolean;

[20:32:59]  typescript: node_modules/@walletconnect/jsonrpc-types/dist/cjs/jsonrpc.d.ts, line: 9 
            Cannot find name 'Required'. 

       L9:  export interface JsonRpcRequest<T = any> extends Required<RequestArguments<T>> {
      L10:      id: number;

[20:32:59]  ionic-app-script task: "build" 
[20:32:59]  Error: The Angular AoT build failed. See the issues above 
Error: The Angular AoT build failed. See the issues above
    at /home/appuser/app/bitpay/wallet/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:232:55
    at step (/home/appuser/app/bitpay/wallet/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
    at Object.next (/home/appuser/app/bitpay/wallet/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
    at fulfilled (/home/appuser/app/bitpay/wallet/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-scripts.

emanuelb avatar Mar 10 '22 20:03 emanuelb

tried again to compile latest commit, errors:

> ionic-app-scripts build --aot --target cordova --platform android
[18:25:03]  ionic-app-scripts 3.2.3 
[18:25:03]  build dev started ... 
[18:25:04]  clean started ... 
[18:25:04]  clean finished in less than 1 ms 
[18:25:04]  copy started ... 
[18:25:04]  deeplinks started ... 
[18:25:05]  deeplinks finished in 711 ms 
[18:25:05]  ngc started ... 
[18:25:23]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            '{' or ';' expected. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;
       L7:  export declare function isIOS(): boolean;

[18:25:23]  typescript: node_modules/bitcore-wallet-client/ts_build/lib/key.d.ts, line: 3 
            Invalid character. 

       L2:  export declare class Key {
       L3:      #private;
       L4:      id: any;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 3 
            Initializers are not allowed in ambient contexts. 

       L2:  declare class Connector implements IConnector {
       L3:      readonly protocol = "wc";
       L4:      readonly version = 1;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 4 
            Initializers are not allowed in ambient contexts. 

       L3:  readonly protocol = "wc";
       L4:  readonly version = 1;
       L5:  private _bridge;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 26 
            An accessor cannot be declared in an ambient context. 

      L25:  constructor(opts: IConnectorOpts);
      L26:  set bridge(value: string);
      L27:  get bridge(): string;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 27 
            An accessor cannot be declared in an ambient context. 

      L26:  set bridge(value: string);
      L27:  get bridge(): string;
      L28:  set key(value: string);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 28 
            An accessor cannot be declared in an ambient context. 

      L27:  get bridge(): string;
      L28:  set key(value: string);
      L29:  get key(): string;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 29 
            An accessor cannot be declared in an ambient context. 

      L28:  set key(value: string);
      L29:  get key(): string;
      L30:  set clientId(value: string);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 30 
            An accessor cannot be declared in an ambient context. 

      L29:  get key(): string;
      L30:  set clientId(value: string);
      L31:  get clientId(): string;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 31 
            An accessor cannot be declared in an ambient context. 

      L30:  set clientId(value: string);
      L31:  get clientId(): string;
      L32:  set peerId(value: string);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 32 
            An accessor cannot be declared in an ambient context. 

      L31:  get clientId(): string;
      L32:  set peerId(value: string);
      L33:  get peerId(): string;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 33 
            An accessor cannot be declared in an ambient context. 

      L32:  set peerId(value: string);
      L33:  get peerId(): string;
      L34:  set clientMeta(value: IClientMeta | null);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 34 
            An accessor cannot be declared in an ambient context. 

      L33:  get peerId(): string;
      L34:  set clientMeta(value: IClientMeta | null);
      L35:  get clientMeta(): IClientMeta | null;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 35 
            An accessor cannot be declared in an ambient context. 

      L34:  set clientMeta(value: IClientMeta | null);
      L35:  get clientMeta(): IClientMeta | null;
      L36:  set peerMeta(value: IClientMeta | null);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 36 
            An accessor cannot be declared in an ambient context. 

      L35:  get clientMeta(): IClientMeta | null;
      L36:  set peerMeta(value: IClientMeta | null);
      L37:  get peerMeta(): IClientMeta | null;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 37 
            An accessor cannot be declared in an ambient context. 

      L36:  set peerMeta(value: IClientMeta | null);
      L37:  get peerMeta(): IClientMeta | null;
      L38:  set handshakeTopic(value: string);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 38 
            An accessor cannot be declared in an ambient context. 

      L37:  get peerMeta(): IClientMeta | null;
      L38:  set handshakeTopic(value: string);
      L39:  get handshakeTopic(): string;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 39 
            An accessor cannot be declared in an ambient context. 

      L38:  set handshakeTopic(value: string);
      L39:  get handshakeTopic(): string;
      L40:  set handshakeId(value: number);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 40 
            An accessor cannot be declared in an ambient context. 

      L39:  get handshakeTopic(): string;
      L40:  set handshakeId(value: number);
      L41:  get handshakeId(): number;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 41 
            An accessor cannot be declared in an ambient context. 

      L40:  set handshakeId(value: number);
      L41:  get handshakeId(): number;
      L42:  get uri(): string;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 42 
            An accessor cannot be declared in an ambient context. 

      L41:  get handshakeId(): number;
      L42:  get uri(): string;
      L43:  set uri(value: string);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 43 
            An accessor cannot be declared in an ambient context. 

      L42:  get uri(): string;
      L43:  set uri(value: string);
      L44:  set chainId(value: number);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 44 
            An accessor cannot be declared in an ambient context. 

      L43:  set uri(value: string);
      L44:  set chainId(value: number);
      L45:  get chainId(): number;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 45 
            An accessor cannot be declared in an ambient context. 

      L44:  set chainId(value: number);
      L45:  get chainId(): number;
      L46:  set networkId(value: number);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 46 
            An accessor cannot be declared in an ambient context. 

      L45:  get chainId(): number;
      L46:  set networkId(value: number);
      L47:  get networkId(): number;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 47 
            An accessor cannot be declared in an ambient context. 

      L46:  set networkId(value: number);
      L47:  get networkId(): number;
      L48:  set accounts(value: string[]);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 48 
            An accessor cannot be declared in an ambient context. 

      L47:  get networkId(): number;
      L48:  set accounts(value: string[]);
      L49:  get accounts(): string[];

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 49 
            An accessor cannot be declared in an ambient context. 

      L48:  set accounts(value: string[]);
      L49:  get accounts(): string[];
      L50:  set rpcUrl(value: string);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 50 
            An accessor cannot be declared in an ambient context. 

      L49:  get accounts(): string[];
      L50:  set rpcUrl(value: string);
      L51:  get rpcUrl(): string;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 51 
            An accessor cannot be declared in an ambient context. 

      L50:  set rpcUrl(value: string);
      L51:  get rpcUrl(): string;
      L52:  set connected(value: boolean);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 52 
            An accessor cannot be declared in an ambient context. 

      L51:  get rpcUrl(): string;
      L52:  set connected(value: boolean);
      L53:  get connected(): boolean;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 53 
            An accessor cannot be declared in an ambient context. 

      L52:  set connected(value: boolean);
      L53:  get connected(): boolean;
      L54:  set pending(value: boolean);

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 54 
            An accessor cannot be declared in an ambient context. 

      L53:  get connected(): boolean;
      L54:  set pending(value: boolean);
      L55:  get pending(): boolean;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 55 
            An accessor cannot be declared in an ambient context. 

      L54:  set pending(value: boolean);
      L55:  get pending(): boolean;
      L56:  get session(): {

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 56 
            An accessor cannot be declared in an ambient context. 

      L55:  get pending(): boolean;
      L56:  get session(): {
      L57:      connected: boolean;

[18:25:23]  typescript: node_modules/@walletconnect/core/dist/cjs/index.d.ts, line: 69 
            An accessor cannot be declared in an ambient context. 

      L68:  };
      L69:  set session(value: {
      L70:      connected: boolean;

[18:25:23]  typescript: node_modules/detect-browser/index.d.ts, line: 13 
            Initializers are not allowed in ambient contexts. 

      L12:      readonly type = "browser";
      L13:      constructor(name: Browser, version: string, os: OperatingSystem | null);

[18:25:23]  typescript: node_modules/detect-browser/index.d.ts, line: 18 
            Initializers are not allowed in ambient contexts. 

      L17:  readonly type = "node";
      L18:  readonly name: 'node';
      L19:  readonly os: NodeJS.Platform;

[18:25:23]  typescript: node_modules/detect-browser/index.d.ts, line: 28 
            Initializers are not allowed in ambient contexts. 

      L27:      readonly type = "bot-device";
      L28:      constructor(name: Browser, version: string, os: OperatingSystem | null, bot: string);

[18:25:23]  typescript: node_modules/detect-browser/index.d.ts, line: 32 
            Initializers are not allowed in ambient contexts. 

      L31:  readonly type = "bot";
      L32:  readonly bot: true;  
      L33:  readonly name: 'bot';

[18:25:23]  typescript: node_modules/detect-browser/index.d.ts, line: 39 
            Initializers are not allowed in ambient contexts. 

      L38:  readonly type = "react-native";
      L39:  readonly name: 'react-native';
      L40:  readonly version: null;

[18:25:23]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            Cannot find name 'import'. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;
       L7:  export declare function isIOS(): boolean;

[18:25:23]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            Property 'OperatingSystem' does not exist on type '"detect-browser"'. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;               
       L7:  export declare function isIOS(): boolean;

[18:25:23]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            Property 'Platform' does not exist on type 'typeof NodeJS'. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;        
       L7:  export declare function isIOS(): boolean;

[18:25:23]  typescript: node_modules/@walletconnect/browser-utils/dist/cjs/browser.d.ts, line: 6 
            Object is possibly 'undefined'. 

       L5:  export declare function detectOS(): import("detect-browser").OperatingSystem | NodeJS.Platform | undefined;
       L6:  export declare function isAndroid(): boolean;         
       L7:  export declare function isIOS(): boolean;

[18:25:23]  typescript: node_modules/@walletconnect/jsonrpc-types/dist/cjs/jsonrpc.d.ts, line: 9 
            Cannot find name 'Required'. 

       L9:  export interface JsonRpcRequest<T = any> extends Required<RequestArguments<T>> {
      L10:      id: number;

[18:25:23]  ionic-app-script task: "build" 
[18:25:23]  Error: The Angular AoT build failed. See the issues above 
Error: The Angular AoT build failed. See the issues above
    at /home/appuser/app/bitpay/wallet/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:232:55
    at step (/home/appuser/app/bitpay/wallet/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
    at Object.next (/home/appuser/app/bitpay/wallet/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
    at fulfilled (/home/appuser/app/bitpay/wallet/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-scripts.
        
        ionic-app-scripts build --aot --target cordova --platform android exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.
events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: spawn ps ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:android-release: `npm run env:prod && ionic cordova plugin add [email protected] && ionic cordova build android --release --aot true --environment prod --output-hashing all --sourcemaps false --extract-css true --named-chunks false --build-optimizer true`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build:android-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/appuser/.npm/_logs/2022-06-04T18_25_23_898Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] final:android: `NODE_OPTIONS=--max_old_space_size=4096 npm run build:android-release && npm run align:android && npm run signv2:android`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] final:android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/appuser/.npm/_logs/2022-06-04T18_25_23_912Z-debug.log

emanuelb avatar Jun 04 '22 18:06 emanuelb

So any news on this issue??

Giszmo avatar Nov 02 '22 20:11 Giszmo

any update? i'd love for bitpay to be reproducible.

joshatyourown avatar Jun 30 '23 01:06 joshatyourown

Closing this issue as I managed to build latest github release 14.12.0 and version on Google play store 14.11.4 via Containerfile at: https://github.com/bitpay/bitpay-app/issues/686#issuecomment-1615994429

emanuelb avatar Jul 01 '23 16:07 emanuelb

Pada Ahd, 2 Jul 2023, 12:44 PG Emanuel Bronshtein @.***> menulis:

Closing this issue as I managed to build latest github release 14.12.0 and version on Google play store 14.11.4 via Containerfile at: bitpay/bitpay-app#686 (comment) https://github.com/bitpay/bitpay-app/issues/686#issuecomment-1615994429

— Reply to this email directly, view it on GitHub https://github.com/bitpay/wallet/issues/11748#issuecomment-1615994539, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASHV6JWIR2S4EU7XKFUWWWLXOBHVNANCNFSM5AYHUP2A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tasrih avatar Feb 27 '24 11:02 tasrih