mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Merge pull request #122 from owncloud/release_0.9.12
Release 0.9.12 , supporting release 2.0.1 of OC for Android
This commit is contained in:
		
						commit
						954f69de99
					
				| @ -4,7 +4,7 @@ android: | ||||
|   components: | ||||
|   - platform-tools | ||||
|   - tools | ||||
|   - build-tools-23.0.2 | ||||
|   - build-tools-23.0.3 | ||||
|   - android-23 | ||||
|   - sys-img-armeabi-v7a-android-23 | ||||
| branches: | ||||
|  | ||||
| @ -3,7 +3,7 @@ buildscript { | ||||
|         mavenCentral() | ||||
|     } | ||||
|     dependencies { | ||||
|         classpath 'com.android.tools.build:gradle:1.5.0' | ||||
|         classpath 'com.android.tools.build:gradle:2.1.0' | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| @ -19,7 +19,7 @@ dependencies { | ||||
| 
 | ||||
| android { | ||||
|     compileSdkVersion 23 | ||||
|     buildToolsVersion "23.0.2" | ||||
|     buildToolsVersion "23.0.3" | ||||
| 
 | ||||
|     sourceSets { | ||||
|         main { | ||||
|  | ||||
							
								
								
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										4
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| #Mon Jan 19 11:03:11 CET 2015 | ||||
| #Mon Dec 28 10:00:20 PST 2015 | ||||
| distributionBase=GRADLE_USER_HOME | ||||
| distributionPath=wrapper/dists | ||||
| zipStoreBase=GRADLE_USER_HOME | ||||
| zipStorePath=wrapper/dists | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip | ||||
|  | ||||
| @ -10,7 +10,7 @@ dependencies { | ||||
| 
 | ||||
| android { | ||||
|     compileSdkVersion 23 | ||||
|     buildToolsVersion "23.0.2" | ||||
|     buildToolsVersion "23.0.3" | ||||
| 
 | ||||
|     sourceSets { | ||||
|         main { | ||||
|  | ||||
							
								
								
									
										
											BIN
										
									
								
								sample_client/gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								sample_client/gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -1,6 +1,6 @@ | ||||
| #Wed Apr 10 15:27:10 PDT 2013 | ||||
| #Mon Dec 28 10:00:20 PST 2015 | ||||
| distributionBase=GRADLE_USER_HOME | ||||
| distributionPath=wrapper/dists | ||||
| zipStoreBase=GRADLE_USER_HOME | ||||
| zipStorePath=wrapper/dists | ||||
| distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip | ||||
|  | ||||
| @ -47,6 +47,7 @@ public class OwnCloudBasicCredentials implements OwnCloudCredentials { | ||||
|         client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);         | ||||
|          | ||||
|         client.getParams().setAuthenticationPreemptive(true); | ||||
|         client.getParams().setCredentialCharset(OwnCloudCredentialsFactory.CREDENTIAL_CHARSET); | ||||
|         client.getState().setCredentials( | ||||
|         		AuthScope.ANY,  | ||||
|         		new UsernamePasswordCredentials(mUsername, mPassword) | ||||
|  | ||||
| @ -49,6 +49,7 @@ public class OwnCloudBearerCredentials implements OwnCloudCredentials { | ||||
| 	    client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);         | ||||
| 	     | ||||
| 	    client.getParams().setAuthenticationPreemptive(true); | ||||
|         client.getParams().setCredentialCharset(OwnCloudCredentialsFactory.CREDENTIAL_CHARSET); | ||||
| 	    client.getState().setCredentials( | ||||
| 	    		AuthScope.ANY,  | ||||
| 	    		new BearerCredentials(mAccessToken) | ||||
|  | ||||
| @ -26,6 +26,8 @@ package com.owncloud.android.lib.common; | ||||
| 
 | ||||
| public class OwnCloudCredentialsFactory { | ||||
| 
 | ||||
| 	public static final String CREDENTIAL_CHARSET = "UTF-8"; | ||||
| 
 | ||||
| 	private static OwnCloudAnonymousCredentials sAnonymousCredentials; | ||||
| 
 | ||||
| 	public static OwnCloudCredentials newBasicCredentials(String username, String password) { | ||||
|  | ||||
| @ -41,6 +41,7 @@ public class OwnCloudSamlSsoCredentials implements OwnCloudCredentials { | ||||
| 	@Override | ||||
| 	public void applyTo(OwnCloudClient client) { | ||||
|         client.getParams().setAuthenticationPreemptive(false); | ||||
|         client.getParams().setCredentialCharset(OwnCloudCredentialsFactory.CREDENTIAL_CHARSET); | ||||
|         client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY); | ||||
|         client.setFollowRedirects(false); | ||||
|          | ||||
|  | ||||
| @ -140,9 +140,10 @@ public class UpdateRemoteShareOperation extends RemoteOperation { | ||||
|     /** | ||||
|      * Enable upload permissions to update in Share resource. | ||||
|      * | ||||
|      * @param publicUpload Upload Permission to set to the target share. | ||||
|      * @param publicUpload  Upload permission to set to the target share. | ||||
|      *                      Null results in no update applied to the upload permission. | ||||
|      */ | ||||
|     public void setPublicUpload(boolean publicUpload) { | ||||
|     public void setPublicUpload(Boolean publicUpload) { | ||||
|         mPublicUpload = publicUpload; | ||||
|     } | ||||
| 
 | ||||
|  | ||||
| @ -1,18 +1,27 @@ | ||||
| buildscript { | ||||
|     repositories { | ||||
|         mavenCentral() | ||||
|     } | ||||
|     dependencies { | ||||
|         classpath 'com.android.tools.build:gradle:2.0.0' | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| apply plugin: 'com.android.application' | ||||
| 
 | ||||
| 
 | ||||
| repositories { | ||||
|     mavenCentral() | ||||
| } | ||||
| 
 | ||||
| dependencies { | ||||
|     compile 'commons-httpclient:commons-httpclient:3.1' | ||||
|     compile 'com.android.support:support-v4:20.0.0' | ||||
|     compile project(':') | ||||
| } | ||||
| 
 | ||||
| android { | ||||
|     compileSdkVersion 23 | ||||
|     buildToolsVersion "23.0.2" | ||||
|     buildToolsVersion "23.0.3" | ||||
| 
 | ||||
|     sourceSets { | ||||
|         main { | ||||
|  | ||||
							
								
								
									
										
											BIN
										
									
								
								test_client/gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								test_client/gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -1,6 +1,6 @@ | ||||
| #Wed Apr 10 15:27:10 PDT 2013 | ||||
| #Mon Dec 28 10:00:20 PST 2015 | ||||
| distributionBase=GRADLE_USER_HOME | ||||
| distributionPath=wrapper/dists | ||||
| zipStoreBase=GRADLE_USER_HOME | ||||
| zipStorePath=wrapper/dists | ||||
| distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| apply plugin: 'android' | ||||
| apply plugin: 'com.android.application' | ||||
| 
 | ||||
| dependencies { | ||||
|     compile fileTree(dir: 'libs', include: '*.jar') | ||||
| @ -7,7 +7,7 @@ dependencies { | ||||
| 
 | ||||
| android { | ||||
|     compileSdkVersion 23 | ||||
|     buildToolsVersion "23.0.2" | ||||
|     buildToolsVersion "23.0.3" | ||||
| 
 | ||||
|     sourceSets { | ||||
|         main { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user