mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	Merge pull request #188 from owncloud/upgrade_gradle
Upgrade gradle to 3.1.2
This commit is contained in:
		
						commit
						ad0adaaf5c
					
				| @ -34,7 +34,7 @@ | |||||||
|     <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> |     <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> | ||||||
| 
 | 
 | ||||||
|     <uses-sdk |     <uses-sdk | ||||||
|         android:minSdkVersion="8" |         android:minSdkVersion="14" | ||||||
|         android:targetSdkVersion="26" /> |         android:targetSdkVersion="26" /> | ||||||
| 
 | 
 | ||||||
| </manifest> | </manifest> | ||||||
|  | |||||||
							
								
								
									
										13
									
								
								build.gradle
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								build.gradle
									
									
									
									
									
								
							| @ -1,26 +1,29 @@ | |||||||
| buildscript { | buildscript { | ||||||
|     repositories { |     repositories { | ||||||
|         jcenter() |         jcenter() | ||||||
|  |         google() | ||||||
|     } |     } | ||||||
|     dependencies { |     dependencies { | ||||||
|         classpath 'com.android.tools.build:gradle:2.3.3' |         classpath 'com.android.tools.build:gradle:3.1.2' | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| apply plugin: 'com.android.library' | apply plugin: 'com.android.library' | ||||||
| 
 | 
 | ||||||
|  | allprojects { | ||||||
|     repositories { |     repositories { | ||||||
|  |         google() | ||||||
|         jcenter() |         jcenter() | ||||||
|     } |     } | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
|     compile 'org.apache.jackrabbit:jackrabbit-webdav:2.12.4' |     api 'org.apache.jackrabbit:jackrabbit-webdav:2.12.4' | ||||||
|     compile 'com.squareup.okhttp3:okhttp:3.10.0' |     api 'com.squareup.okhttp3:okhttp:3.10.0' | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| android { | android { | ||||||
|     compileSdkVersion 26 |     compileSdkVersion 26 | ||||||
|     buildToolsVersion '26.0.2' |  | ||||||
| 
 | 
 | ||||||
|     sourceSets { |     sourceSets { | ||||||
|         main { |         main { | ||||||
| @ -34,7 +37,7 @@ android { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         // Move the tests to tests/java, tests/res, etc... |         // Move the tests to tests/java, tests/res, etc... | ||||||
|         instrumentTest.setRoot('tests') |         androidTest.setRoot('tests') | ||||||
| 
 | 
 | ||||||
|         // Move the build types to build-types/<type> |         // Move the build types to build-types/<type> | ||||||
|         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							| @ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME | |||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip | ||||||
| @ -5,12 +5,11 @@ repositories { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
|     compile project(':') |     implementation project(':') | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| android { | android { | ||||||
|     compileSdkVersion 26 |     compileSdkVersion 26 | ||||||
|     buildToolsVersion "26.0.2" |  | ||||||
| 
 | 
 | ||||||
|     sourceSets { |     sourceSets { | ||||||
|         main { |         main { | ||||||
| @ -24,7 +23,7 @@ android { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         // Move the tests to tests/java, tests/res, etc... |         // Move the tests to tests/java, tests/res, etc... | ||||||
|         instrumentTest.setRoot('tests') |         androidTest.setRoot('tests') | ||||||
| 
 | 
 | ||||||
|         // Move the build types to build-types/<type> |         // Move the build types to build-types/<type> | ||||||
|         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... | ||||||
| @ -43,9 +42,4 @@ android { | |||||||
|     packagingOptions { |     packagingOptions { | ||||||
|         exclude 'META-INF/LICENSE.txt' |         exclude 'META-INF/LICENSE.txt' | ||||||
|     } |     } | ||||||
|     android { |  | ||||||
|         lintOptions { |  | ||||||
|             abortOnError false |  | ||||||
|         } |  | ||||||
|     } |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME | |||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip | ||||||
| @ -38,7 +38,7 @@ | |||||||
|     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||||||
| 
 | 
 | ||||||
| 	<uses-sdk | 	<uses-sdk | ||||||
|         android:minSdkVersion="8" |         android:minSdkVersion="14" | ||||||
|         android:targetSdkVersion="26" /> |         android:targetSdkVersion="26" /> | ||||||
| 
 | 
 | ||||||
|     <application |     <application | ||||||
|  | |||||||
| @ -6,13 +6,11 @@ repositories { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
|     compile 'commons-httpclient:commons-httpclient:3.1' |     implementation project(':') | ||||||
|     compile project(':') |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| android { | android { | ||||||
|     compileSdkVersion 26 |     compileSdkVersion 26 | ||||||
|     buildToolsVersion "26.0.2" |  | ||||||
| 
 | 
 | ||||||
|     sourceSets { |     sourceSets { | ||||||
|         main { |         main { | ||||||
| @ -26,7 +24,7 @@ android { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         // Move the tests to tests/java, tests/res, etc... |         // Move the tests to tests/java, tests/res, etc... | ||||||
|         instrumentTest.setRoot('tests') |         androidTest.setRoot('tests') | ||||||
| 
 | 
 | ||||||
|         // Move the build types to build-types/<type> |         // Move the build types to build-types/<type> | ||||||
|         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... | ||||||
| @ -45,9 +43,4 @@ android { | |||||||
|     packagingOptions { |     packagingOptions { | ||||||
|         exclude 'META-INF/LICENSE.txt' |         exclude 'META-INF/LICENSE.txt' | ||||||
|     } |     } | ||||||
|     android { |  | ||||||
|         lintOptions { |  | ||||||
|             abortOnError false |  | ||||||
|         } |  | ||||||
|     } |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME | |||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip | ||||||
| @ -28,7 +28,7 @@ | |||||||
|     android:versionCode="1" |     android:versionCode="1" | ||||||
|     android:versionName="1.0" > |     android:versionName="1.0" > | ||||||
| 
 | 
 | ||||||
|     <uses-sdk android:minSdkVersion="8" /> |     <uses-sdk android:minSdkVersion="14" /> | ||||||
|     <application> |     <application> | ||||||
|         <uses-library android:name="android.test.runner" /> |         <uses-library android:name="android.test.runner" /> | ||||||
|     </application> |     </application> | ||||||
|  | |||||||
| @ -1,13 +1,12 @@ | |||||||
| apply plugin: 'com.android.application' | apply plugin: 'com.android.application' | ||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
|     compile fileTree(dir: 'libs', include: '*.jar') |     implementation fileTree(dir: 'libs', include: '*.jar') | ||||||
|     compile project(':') |     implementation project(':') | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| android { | android { | ||||||
|     compileSdkVersion 26 |     compileSdkVersion 26 | ||||||
|     buildToolsVersion "26.0.2" |  | ||||||
| 
 | 
 | ||||||
|     sourceSets { |     sourceSets { | ||||||
|         main { |         main { | ||||||
| @ -21,7 +20,7 @@ android { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         // Move the tests to tests/java, tests/res, etc... |         // Move the tests to tests/java, tests/res, etc... | ||||||
|         instrumentTest.setRoot('tests') |         androidTest.setRoot('tests') | ||||||
| 
 | 
 | ||||||
|         // Move the build types to build-types/<type> |         // Move the build types to build-types/<type> | ||||||
|         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user