-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find com.google.android.gms:play-services-tapandpay:18.2.0 #686
Comments
I had the same problem. TapandPay Is a dependent package that requires authorization. https://developers.google.com/pay/issuers/apis/push-provisioning/android/releases#release_notes |
Thank you. I will try this and report back |
So the app can currently not be reproduced or even compiled by anonymous users or by users that are not play-services-tapandpay "authorized partners"? |
If you are not using this component, you can remove it from the code. After I commented it, it was able to start. |
can you point out to the correct component? |
Remove files Code comments in src/store/card/card.effects.ts // const {lastFourDigits, name} = data; // await GooglePushProvisioningModule.startPushProvision( |
Well, for my purpose changing the code sadly is not helpful. |
The file is supposedly published by someone in (didn't verified it's legit version published by Google): https://github.com/vicinity/vcx-hosted-maven/blob/main/play-services-tapandpay-18.2.0.aar and can be used to build latest version on github 14.12.0 and version 14.11.4 as:
sed -i "s/implementation 'com.google.android.gms:play-services-tapandpay:18.2.0'/implementation(files('play-services-tapandpay-18.2.0.aar'))/g" /home/appuser/bitpay-app/android/app/build.gradle; App can be built fully by:
APK generated in: FROM node:18.16.1-slim
RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive \
apt-get install --yes -o APT::Install-Suggests=false --no-install-recommends \
openjdk-17-jdk \
git \
wget \
ca-certificates; \
rm -rf /var/lib/apt/lists/*; \
useradd -ms /bin/bash appuser;
USER appuser
ENV ANDROID_SDK_ROOT="/home/appuser/sdk" \
ANDROID_HOME="/home/appuser/sdk" \
NODE_ENV="development"
RUN set -ex; \
mkdir -p "/home/appuser/sdk/licenses"; \
printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > \
"/home/appuser/sdk/licenses/android-sdk-license"; \
cd /home/appuser/; \
git clone --depth 1 --branch v.14.11.4 https://github.com/bitpay/bitpay-app/;
WORKDIR /home/appuser/bitpay-app
RUN set -ex; \
yarn install; \
cd android/app; \
wget https://github.com/vicinity/vcx-hosted-maven/raw/main/play-services-tapandpay-18.2.0.aar; \
echo "8547cfd099a63bf57c6b35acf54c362d50d4eb5f363745c7a83f06429ece9853 play-services-tapandpay-18.2.0.aar" | sha256sum -c; \
printf "\nAPP_UPLOAD_STORE_FILE=bitpay.pfx\nAPP_UPLOAD_STORE_PASSWORD=bitpay_alias\nAPP_UPLOAD_KEY_ALIAS=bitpay_alias\nAPP_UPLOAD_KEY_PASSWORD=bitpay_alias" >> /home/appuser/bitpay-app/android/gradle.properties; \
keytool -genkey -alias bitpay_alias -keystore /home/appuser/bitpay-app/android/app/bitpay.pfx -storetype PKCS12 -keyalg RSA -keysize 2048 -storepass bitpay_alias -keypass bitpay_alias -validity 10000 -dname "CN=Stephen Pair, OU=Copay, O=Bitpay, L=Atlanta, ST=Georgia, C=US"; \
sed -i "s/implementation 'com.google.android.gms:play-services-tapandpay:18.2.0'/implementation(files('play-services-tapandpay-18.2.0.aar'))/g" /home/appuser/bitpay-app/android/app/build.gradle; \
sed -i "s/BRAZE_API_KEY_REPLACE_ME/b0df801c-1b66-4f66-97a7-d919f8c48992/g" /home/appuser/bitpay-app/android/app/src/main/res/values/braze.xml; \
sed -i "s/BRAZE_SENDER_ID_REPLACE_ME/149194066736/g" /home/appuser/bitpay-app/android/app/src/main/res/values/braze.xml; \
sed -i "s/GOOGLE_MAPS_API_KEY_REPLACE_ME/AIzaSyCz8x_R-MGA-D_vo1EQEakBSmlgAX7rmH0/g" /home/appuser/bitpay-app/android/app/src/main/AndroidManifest.xml; \
sed -i "s/ALLOWED-URL-PREFIXES-REPLACE-ME/https:\/\/bitpay.com,https:\/\/test.bitpay.com,https:\/\/staging.bitpay.com,https:\/\/bws.bitpay.com,https:\/\/www.coinbase.com,https:\/\/api.coinbase.com,https:\/\/api.1inch.io\/v4.0\/,https:\/\/api.coingecko.com\/api\/v3\/simple\/token_price\/,https:\/\/checkout.simplexcc.com,https:\/\/sandbox.test-simplexcc.com,https:\/\/api.testwyre.com,https:\/\/api.sendwyre.com,https:\/\/api.zenledger.io\/bitpay\/wallets\/,https:\/\/rest.iad-05.braze.com,https:\/\/sdk.iad-05.braze.com,https:\/\/cdn-settings.segment.com,https:\/\/api.segment.io,https:\/\/cloudflare-eth.com\/,https:\/\/polygon-rpc.com\/,https:\/\/matic-mumbai.chainstacklabs.com/g" /home/appuser/bitpay-app/android/app/src/main/AndroidManifest.xml; \
RUN set -ex; \
cd /home/appuser/bitpay-app/android/ ; \
./gradlew assembleRelease Notes for RB of version
|
I am trying to compile the android version, but I keep getting the following error
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.android.gms:play-services-tapandpay:18.2.0.
I am trying to understand where this module is suppose to be?
I tried on both MacOS 16.2 and Ubuntu 22.04
The text was updated successfully, but these errors were encountered: