eIDmSDK / eID-mSDK-Android

eID mSDK zabezpečuje komunikáciu s občianskym preukazom vybaveným čipom s duálnym (kontaktným aj bezkontaktným) rozhraním na mobilných zariadeniach s NFC. Preukazy s duálnym rozhraním sú vydávané od 1.12.2022.
https://eidas.minv.sk/download
Other
9 stars 0 forks source link

Could not resolve sk.eid:eid-sdk:1.4.0 #2

Open SlaveMast3r opened 5 months ago

SlaveMast3r commented 5 months ago

I am encountering a build failure when trying to assemble this sample project. The build log indicates that there are issues with resolving dependencies for eid-sdk and eid-exceptions-sdk. Below are the details:

Build Environment:

Android Gradle Plugin version: 7.4.2
Compile SDK version: 34
Project: eID-mSDK-Android
Commit sha: 65e33bba217024d497115f1d3f33c88dfcdc56cf

Settings:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        mavenLocal()
        maven { url 'https://jitpack.io' }
        maven {
            url = "https://maven.pkg.github.com/eIDmSDK/eID-mSDK-Android/"
            credentials {
                username = "eIDmSDK"
                password = "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"
            }
        }
    }
}

Build Log:

FAILURE: Build completed with 8 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
   > Could not resolve sk.eid:eid-sdk:1.4.0.
     Required by:
         project :app
      > Could not resolve sk.eid:eid-sdk:1.4.0.
         > Could not get resource 'https://maven.pkg.github.com/eIDmSDK/eID-mSDK-Android/sk/eid/eid-sdk/1.4.0/eid-sdk-1.4.0.pom'.
            > Could not GET 'https://maven.pkg.github.com/eIDmSDK/eID-mSDK-Android/sk/eid/eid-sdk/1.4.0/eid-sdk-1.4.0.pom'. Received status code 401 from server: Unauthorized
   > Could not resolve sk.eid:eid-exceptions-sdk:1.4.0.
     Required by:
         project :app
      > Could not resolve sk.eid:eid-exceptions-sdk:1.4.0.
         > Could not get resource 'https://maven.pkg.github.com/eIDmSDK/eID-mSDK-Android/sk/eid/eid-exceptions-sdk/1.4.0/eid-exceptions-sdk-1.4.0.pom'.
            > Could not GET 'https://maven.pkg.github.com/eIDmSDK/eID-mSDK-Android/sk/eid/eid-exceptions-sdk/1.4.0/eid-exceptions-sdk-1.4.0.pom'. Received status code 401 from server: Unauthorized

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
gamelaster commented 5 months ago

Looks like access token expired.

SlaveMast3r commented 5 months ago

I'm following guide from setup notes in project readme, and to this date there (eidas web site) is token which I'm trying to use. So it has to be updated either in readme, or eidas web site. Is there any person which we can tag to solve it or at least provide new token?

celuchmarek commented 1 month ago

The setup notes are quite misleading. Everyone should use their own github PAT (personal access token). MV shouldn't publicly display their access token.

You can easily create and set up your own token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic with public:repo (probably) and read:packages.