faceterteam / PayCards_Android

Credit card scanning for mobile apps
https://pay.cards/
Other
197 stars 126 forks source link

SSL for Maven repo to support Android Gradle Plugin v7+ #61

Open kesslermichael opened 3 years ago

kesslermichael commented 3 years ago

When upgrading an Android Studio project to Android Gradle Plugin 7+ (e.g. 7.0.2), the provided maven repo doesn't work anymore, saying the http maven repo is not supported.

ghost commented 3 years ago

Temporary workaround: You can explicitly allow unsecured urls for repositories like this.

But long term this should use HTTPS.

Nevertheless, there's another issue currently blocking.

hitesh-dhamshaniya commented 2 years ago

For updated Gradle, one can add below lines of code in settings.gradle file.

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url "https://pay.cards/maven" }
    }
}