wallet-sdk icon indicating copy to clipboard operation
wallet-sdk copied to clipboard

Readme of demo is incomplete

Open cre8 opened this issue 2 years ago • 1 comments

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 avatar Jun 23 '23 10:06 cre8

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....

cre8 avatar Jun 23 '23 11:06 cre8