Skip to content

Commit

Permalink
CI added and SSL added
Browse files Browse the repository at this point in the history
  • Loading branch information
aslamanver committed Dec 12, 2022
1 parent 788b10b commit 9a4b762
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,12 @@ It gives an exception when the success return false
```java
syncResponse.ex
```

Refer the example for Sync : [Example](https://github.com/aslamanver/retrofit-lite/blob/master/app/src/main/java/com/aslam/retrofit_lite/MainActivity.java#L194)

### Setting custom `okHttpClient` and `sslSocketFactory`

```java
APIClient.ConfigBuilder clientBuilder = new APIClient.ConfigBuilder()
.setSSLSocketFactoryGenerator();
```
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
buildscript {
repositories {
google()
jcenter()

mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
Expand All @@ -16,8 +16,8 @@ buildscript {
allprojects {
repositories {
google()
jcenter()

mavenCentral()
maven { url "https://jitpack.io" }
}
}

Expand Down
4 changes: 2 additions & 2 deletions retrofitlite/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 108
versionName "1.0.8"
versionCode 201
versionName "2.0.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
Expand Down

0 comments on commit 9a4b762

Please sign in to comment.