Skip to content

avew/retrofit-mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Retrofit With Masking Log

CircleCI

How To Use

 CustomHttpConfig customHttpConfig = CustomHttpConfig.builder()
                .url("https://reqres.in")
                .agent("OkHttp/4.1.0")
                .build();
 Retrofit retrofit = new VewHttp(customHttpConfig, Arrays.asList("https","password"), true).builder()
                .addConverterFactory(GsonConverterFactory.create())
                .build();
 Response<MultipleResource> single = retrofit.create(API.class)
                .doGetListResources()
                .toBlocking()
                .single();
 Assert.assertEquals(200, single.code());