Insta360Develop / CameraSDK-Android

Android SDK to control Insta360 cameras
81 stars 9 forks source link

I want the URL of the Maven repository to be HTTPS #13

Closed uhooi closed 1 year ago

uhooi commented 3 years ago

I would like the following URL to be HTTPS. http://nexus.arashivision.com:9999/repository/maven-public/

Otherwise, the following error will occur.

> Could not resolve all dependencies for configuration ':classpath'.
   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://nexus.arashivision.com:9999/repository/maven-public/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.0.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. 

I have set allowInsecureProtocol to true to avoid this, but it is not safe.

build.gradle file in the project root directory

allprojects {
    repositories {
        ...
        maven {
            url 'http://nexus.arashivision.com:9999/repository/maven-public/'
+           allowInsecureProtocol true
            credentials {
                // see sdk demo
                username = '***'
                password = '***'
            }
        }
    }
}
Tianweihaihaihai commented 1 year ago

Sorry we donot have the method of https