mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 18:37:17 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			359e591275
			...
			cb076aa6b9
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | cb076aa6b9 | ||
|  | 7ceef58382 | ||
|  | a877612fca | 
							
								
								
									
										12
									
								
								build.gradle
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								build.gradle
									
									
									
									
									
								
							| @ -1,7 +1,7 @@ | |||||||
| buildscript { | buildscript { | ||||||
|     ext { |     ext { | ||||||
|         kotlinVersion = '1.6.21' |         orgJetbrainsKotlin = '1.7.20' | ||||||
|         moshiVersion = "1.13.0" |         comSquareupMoshi = '1.14.0' | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     repositories { |     repositories { | ||||||
| @ -10,9 +10,9 @@ buildscript { | |||||||
|         maven { url "https://plugins.gradle.org/m2/" } |         maven { url "https://plugins.gradle.org/m2/" } | ||||||
|     } |     } | ||||||
|     dependencies { |     dependencies { | ||||||
|         classpath "org.jlleitschuh.gradle:ktlint-gradle:10.3.0" |         classpath "org.jlleitschuh.gradle:ktlint-gradle:11.0.0" | ||||||
|         classpath 'com.android.tools.build:gradle:7.1.3' |         classpath 'com.android.tools.build:gradle:7.3.1' | ||||||
|         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" |         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$orgJetbrainsKotlin" | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -26,4 +26,4 @@ allprojects { | |||||||
| 
 | 
 | ||||||
| subprojects { | subprojects { | ||||||
|     apply plugin: "org.jlleitschuh.gradle.ktlint" |     apply plugin: "org.jlleitschuh.gradle.ktlint" | ||||||
| } | } | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							| @ -1,5 +1,5 @@ | |||||||
| distributionBase=GRADLE_USER_HOME | distributionBase=GRADLE_USER_HOME | ||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||||
|  | |||||||
| @ -5,16 +5,16 @@ apply plugin: 'kotlin-parcelize' | |||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
|     api 'com.squareup.okhttp3:okhttp:4.6.0' |     api 'com.squareup.okhttp3:okhttp:4.6.0' | ||||||
|     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" |     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$orgJetbrainsKotlin" | ||||||
|     api 'com.gitlab.ownclouders:dav4android:oc_support_2.1.5' |     api 'com.gitlab.ownclouders:dav4android:oc_support_2.1.5' | ||||||
|     api 'com.github.AppDevNext.Logcat:LogcatCore:2.2.2' |     api 'com.github.AppDevNext.Logcat:LogcatCore:2.2.2' | ||||||
| 
 | 
 | ||||||
|     // Moshi |     // Moshi | ||||||
|     implementation("com.squareup.moshi:moshi-kotlin:$moshiVersion") { |     implementation("com.squareup.moshi:moshi-kotlin:$comSquareupMoshi") { | ||||||
|         exclude module: "kotlin-reflect" |         exclude module: "kotlin-reflect" | ||||||
|     } |     } | ||||||
|     implementation 'org.apache.commons:commons-lang3:3.12.0' |     implementation 'org.apache.commons:commons-lang3:3.12.0' | ||||||
|     kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion" |     kapt "com.squareup.moshi:moshi-kotlin-codegen:$comSquareupMoshi" | ||||||
| 
 | 
 | ||||||
|     testImplementation 'junit:junit:4.13.2' |     testImplementation 'junit:junit:4.13.2' | ||||||
|     testImplementation 'org.robolectric:robolectric:4.9' |     testImplementation 'org.robolectric:robolectric:4.9' | ||||||
| @ -22,7 +22,7 @@ dependencies { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| android { | android { | ||||||
|     compileSdkVersion 31 |     compileSdkVersion 33 | ||||||
| 
 | 
 | ||||||
|     defaultConfig { |     defaultConfig { | ||||||
|         minSdkVersion 21 |         minSdkVersion 21 | ||||||
| @ -39,4 +39,5 @@ android { | |||||||
|             includeAndroidResources = true |             includeAndroidResources = true | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |     namespace 'com.owncloud.android.lib' | ||||||
| } | } | ||||||
|  | |||||||
| @ -23,8 +23,7 @@ | |||||||
| 
 | 
 | ||||||
|  --> |  --> | ||||||
| 
 | 
 | ||||||
| <manifest package="com.owncloud.android.lib" | <manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||||||
|     xmlns:android="http://schemas.android.com/apk/res/android"> |  | ||||||
| 
 | 
 | ||||||
|     <!-- USE_CREDENTIALS, MANAGE_ACCOUNTS and AUTHENTICATE_ACCOUNTS are needed for API < 23. |     <!-- USE_CREDENTIALS, MANAGE_ACCOUNTS and AUTHENTICATE_ACCOUNTS are needed for API < 23. | ||||||
|         In API >= 23 the do not exist anymore --> |         In API >= 23 the do not exist anymore --> | ||||||
|  | |||||||
| @ -1,8 +1,6 @@ | |||||||
| /* ownCloud Android Library is available under MIT license | /* ownCloud Android Library is available under MIT license | ||||||
|  *   Copyright (C) 2022 ownCloud GmbH. |  *   Copyright (C) 2022 ownCloud GmbH. | ||||||
|  * |  * | ||||||
|  *   @author David González Verdugo |  | ||||||
|  *  |  | ||||||
|  *   Permission is hereby granted, free of charge, to any person obtaining a copy |  *   Permission is hereby granted, free of charge, to any person obtaining a copy | ||||||
|  *   of this software and associated documentation files (the "Software"), to deal |  *   of this software and associated documentation files (the "Software"), to deal | ||||||
|  *   in the Software without restriction, including without limitation the rights |  *   in the Software without restriction, including without limitation the rights | ||||||
| @ -32,8 +30,7 @@ import com.owncloud.android.lib.resources.status.GetRemoteCapabilitiesOperation | |||||||
| import com.owncloud.android.lib.resources.status.RemoteCapability | import com.owncloud.android.lib.resources.status.RemoteCapability | ||||||
| import com.owncloud.android.lib.resources.status.services.CapabilityService | import com.owncloud.android.lib.resources.status.services.CapabilityService | ||||||
| 
 | 
 | ||||||
| class OCCapabilityService(override val client: OwnCloudClient) : | class OCCapabilityService(override val client: OwnCloudClient) : CapabilityService { | ||||||
|     CapabilityService { |  | ||||||
|     override fun getCapabilities(): RemoteOperationResult<RemoteCapability> = |     override fun getCapabilities(): RemoteOperationResult<RemoteCapability> = | ||||||
|         GetRemoteCapabilitiesOperation().execute(client) |         GetRemoteCapabilitiesOperation().execute(client) | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,8 +1,6 @@ | |||||||
| /* ownCloud Android Library is available under MIT license | /* ownCloud Android Library is available under MIT license | ||||||
|  *   Copyright (C) 2022 ownCloud GmbH. |  *   Copyright (C) 2022 ownCloud GmbH. | ||||||
|  * |  * | ||||||
|  * @author Abel García de Prada  |  | ||||||
|  * |  | ||||||
|  *   Permission is hereby granted, free of charge, to any person obtaining a copy |  *   Permission is hereby granted, free of charge, to any person obtaining a copy | ||||||
|  *   of this software and associated documentation files (the "Software"), to deal |  *   of this software and associated documentation files (the "Software"), to deal | ||||||
|  *   in the Software without restriction, including without limitation the rights |  *   in the Software without restriction, including without limitation the rights | ||||||
| @ -26,7 +24,6 @@ | |||||||
| 
 | 
 | ||||||
| package com.owncloud.android.lib.resources.status.services.implementation | package com.owncloud.android.lib.resources.status.services.implementation | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| import com.owncloud.android.lib.common.OwnCloudClient | import com.owncloud.android.lib.common.OwnCloudClient | ||||||
| import com.owncloud.android.lib.common.operations.RemoteOperationResult | import com.owncloud.android.lib.common.operations.RemoteOperationResult | ||||||
| import com.owncloud.android.lib.resources.files.CheckPathExistenceRemoteOperation | import com.owncloud.android.lib.resources.files.CheckPathExistenceRemoteOperation | ||||||
| @ -39,16 +36,16 @@ class OCServerInfoService : ServerInfoService { | |||||||
|     override fun checkPathExistence( |     override fun checkPathExistence( | ||||||
|         path: String, |         path: String, | ||||||
|         isUserLoggedIn: Boolean, |         isUserLoggedIn: Boolean, | ||||||
|         client: OwnCloudClient |         client: OwnCloudClient, | ||||||
|     ): RemoteOperationResult<Boolean> = |     ): RemoteOperationResult<Boolean> = | ||||||
|         CheckPathExistenceRemoteOperation( |         CheckPathExistenceRemoteOperation( | ||||||
|             remotePath = path, |             remotePath = path, | ||||||
|             isUserLoggedIn = true |             isUserLoggedIn = true, | ||||||
|         ).execute(client) |         ).execute(client) | ||||||
| 
 | 
 | ||||||
|     override fun getRemoteStatus( |     override fun getRemoteStatus( | ||||||
|         path: String, |         path: String, | ||||||
|         client: OwnCloudClient |         client: OwnCloudClient, | ||||||
|     ): RemoteOperationResult<RemoteServerInfo> = |     ): RemoteOperationResult<RemoteServerInfo> = | ||||||
|         GetRemoteStatusOperation().execute(client) |         GetRemoteStatusOperation().execute(client) | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user