Skip to content
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

Readme of demo is incomplete #465

Open
cre8 opened this issue Jun 23, 2023 · 1 comment
Open

Readme of demo is incomplete #465

cre8 opened this issue Jun 23, 2023 · 1 comment

Comments

@cre8
Copy link

cre8 commented Jun 23, 2023

I tried to run the demo https://github.com/trustbloc/wallet-sdk/tree/main/demo/app#demoreference-app but had multiple issues. I tried to use the maven packages instead of building it from my own:

401: was solved by adding the permission read:packages to the access token (Should maybe mentioned in the docs)

After getting access it failed to get the correct version:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find dev.trustbloc:vc-wallet-sdk:null.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/dev/trustbloc/vc-wallet-sdk/null/vc-wallet-sdk-null.pom
       - https://repo.maven.apache.org/maven2/dev/trustbloc/vc-wallet-sdk/null/vc-wallet-sdk-null.pom
       - https://maven.pkg.github.com/trustbloc-cicd/snapshot/dev/trustbloc/vc-wallet-sdk/null/vc-wallet-sdk-null.pom
     Required by:
         project :

The build.gradle showed that I need to add a variable for the version, so I did with wallet-sdk-pkg.ver=1.0.0 but then it showed me:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find dev.trustbloc:vc-wallet-sdk:1.0.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/dev/trustbloc/vc-wallet-sdk/1.0.0/vc-wallet-sdk-1.0.0.pom
       - https://repo.maven.apache.org/maven2/dev/trustbloc/vc-wallet-sdk/1.0.0/vc-wallet-sdk-1.0.0.pom
       - https://maven.pkg.github.com/trustbloc-cicd/snapshot/dev/trustbloc/vc-wallet-sdk/1.0.0/vc-wallet-sdk-1.0.0.pom
     Required by:
         project :

Which is strange since the V 1.0.0 is listed here: https://github.com/trustbloc/wallet-sdk/packages/1769347

Or is there maybe an error in the build.gradle file?

@cre8
Copy link
Author

cre8 commented Jun 23, 2023

It seems the gradle file is not up to date. The url of the package registry points to https://maven.pkg.github.com/trustbloc-cicd/snapshot, but the package is located here https://maven.pkg.github.com/trustbloc/wallet-sdk

Then it gets downloaded, but I get a lot of Unresolved reference: errors....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant