mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	Merge pull request #285 from owncloud/feature/stop_supporting_android_kitkat
Get rid of Android 4.4 support
This commit is contained in:
		
						commit
						e5939e8b70
					
				| @ -19,7 +19,7 @@ android { | |||||||
|     compileSdkVersion 28 |     compileSdkVersion 28 | ||||||
| 
 | 
 | ||||||
|     defaultConfig { |     defaultConfig { | ||||||
|         minSdkVersion 19 |         minSdkVersion 21 | ||||||
|         targetSdkVersion 28 |         targetSdkVersion 28 | ||||||
| 
 | 
 | ||||||
|         versionCode = 10000400 |         versionCode = 10000400 | ||||||
|  | |||||||
| @ -26,7 +26,6 @@ package com.owncloud.android.lib.common.http; | |||||||
| 
 | 
 | ||||||
| import android.content.Context; | import android.content.Context; | ||||||
| 
 | 
 | ||||||
| import android.os.Build; |  | ||||||
| import com.owncloud.android.lib.common.OwnCloudClientManagerFactory; | import com.owncloud.android.lib.common.OwnCloudClientManagerFactory; | ||||||
| import com.owncloud.android.lib.common.http.interceptors.HttpInterceptor; | import com.owncloud.android.lib.common.http.interceptors.HttpInterceptor; | ||||||
| import com.owncloud.android.lib.common.http.interceptors.RequestHeaderInterceptor; | import com.owncloud.android.lib.common.http.interceptors.RequestHeaderInterceptor; | ||||||
| @ -91,12 +90,7 @@ public class HttpClient { | |||||||
| 
 | 
 | ||||||
|                 SSLSocketFactory sslSocketFactory; |                 SSLSocketFactory sslSocketFactory; | ||||||
| 
 | 
 | ||||||
|                 if (Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT) { |  | ||||||
|                     // TLS v1.2 is disabled by default in API 19, use custom SSLSocketFactory to enable it |  | ||||||
|                     sslSocketFactory = new TLSSocketFactory(sslContext.getSocketFactory()); |  | ||||||
|                 } else { |  | ||||||
|                 sslSocketFactory = sslContext.getSocketFactory(); |                 sslSocketFactory = sslContext.getSocketFactory(); | ||||||
|                 } |  | ||||||
| 
 | 
 | ||||||
|                 // Automatic cookie handling, NOT PERSISTENT |                 // Automatic cookie handling, NOT PERSISTENT | ||||||
|                 CookieJar cookieJar = new CookieJar() { |                 CookieJar cookieJar = new CookieJar() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user