Upload repository / Android library to jitpack.io via github

REFERENCE LINK

https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0

1) In the project

buildscript {
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' // Add this line


2) In the library gradle

apply plugin: 'com.github.dcendents.android-maven'

group='com.github.YourUsername'

3)in the android studio console project path

./gradlew install

git tag 1.0
git push --tags

4) go to your github account , your project and go to releases and create a new one with the same tag you push before

5) go to https://jitpack.io/ search your github path Fespuna/AndroidEasyRate and choose your version in this case 1.0

6) use your repository / library in any project using the methods below

IMPORTANT PUT THIS LINES ON ALLPROJECTS INSIDE THRE PROJECT GRADLE

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

dependencies {
implementation 'com.github.Fespuna:AndroidEasyRate:1.0'
}

followed tutorial:
https://medium.com/@ome450901/publish-an-android-library-by-jitpack-a0342684cbd0

Volley invalidate SSL request error Android

try {
TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager() {
public X509Certificate[] getAcceptedIssuers() {
X509Certificate[] myTrustedAnchors = new X509Certificate[0];
return myTrustedAnchors;
}

@Override
public void checkClientTrusted(X509Certificate[] certs, String authType) {}

@Override
public void checkServerTrusted(X509Certificate[] certs, String authType) {}
}
};

SSLContext sc = SSLContext.getInstance("SSL");
sc.init(null, trustAllCerts, new SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
@Override
public boolean verify(String arg0, SSLSession arg1) {
return true;
}
});
} catch (Exception e) {
}