'dependencies' must be after 'android' for gradle to expose flavors there
With gradle build flavors, it is possible to specify things like 'myflavorImplementation' but only if the 'dependencies' section is after the 'android' section where the build flavors are declared. How 1982 of them to make where things are declared in the file have meaning.
This commit is contained in:
		
							parent
							
								
									c81e3f3d02
								
							
						
					
					
						commit
						ca577dc65a
					
				| @ -12,51 +12,6 @@ def getVersionName = { -> | ||||
|     return stdout.toString().trim() | ||||
| } | ||||
| 
 | ||||
| dependencies { | ||||
|     implementation 'com.android.support:support-v4:27.1.1' | ||||
|     implementation 'com.android.support:appcompat-v7:27.1.1' | ||||
|     implementation 'com.android.support:gridlayout-v7:27.1.1' | ||||
|     implementation 'com.android.support:support-annotations:27.1.1' | ||||
|     implementation 'com.android.support:recyclerview-v7:27.1.1' | ||||
|     implementation 'com.android.support:cardview-v7:27.1.1' | ||||
|     implementation 'com.android.support:design:27.1.1' | ||||
|     implementation 'com.android.support:support-vector-drawable:27.1.1' | ||||
|     implementation 'com.android.support.constraint:constraint-layout:1.1.0' | ||||
|     implementation 'com.android.support:palette-v7:27.1.1' | ||||
|     implementation 'com.android.support:preference-v14:27.1.1' | ||||
| 
 | ||||
|     implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' | ||||
|     implementation 'com.google.zxing:core:3.3.2' | ||||
|     implementation 'eu.chainfire:libsuperuser:1.0.0.201602271131' | ||||
|     implementation 'cc.mvdan.accesspoint:library:0.2.0' | ||||
|     implementation 'info.guardianproject.netcipher:netcipher:2.0.0-alpha1' | ||||
|     implementation 'info.guardianproject.panic:panic:0.5' | ||||
|     implementation 'commons-io:commons-io:2.5' | ||||
|     implementation 'commons-net:commons-net:3.5' | ||||
|     implementation 'org.jmdns:jmdns:3.5.3' | ||||
|     implementation 'org.nanohttpd:nanohttpd:2.3.1' | ||||
|     implementation 'ch.acra:acra:4.9.1' | ||||
|     implementation 'io.reactivex:rxjava:1.1.0' | ||||
|     implementation 'io.reactivex:rxandroid:0.23.0' | ||||
|     implementation 'com.hannesdorfmann:adapterdelegates3:3.0.1' | ||||
|     implementation 'com.ashokvarma.android:bottom-navigation-bar:2.0.4' | ||||
| 
 | ||||
|     implementation 'com.fasterxml.jackson.core:jackson-core:2.8.7' | ||||
|     implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.7' | ||||
|     implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.7' | ||||
| 
 | ||||
|     implementation 'org.bouncycastle:bcpkix-jdk15on:1.59' | ||||
|     implementation 'org.bouncycastle:bcprov-jdk15on:1.59' | ||||
| 
 | ||||
|     testImplementation 'org.robolectric:robolectric:3.8' | ||||
|     testImplementation 'junit:junit:4.12' | ||||
|     testImplementation 'org.mockito:mockito-core:2.7.22' | ||||
| 
 | ||||
|     androidTestImplementation 'com.android.support:support-annotations:25.3.1' | ||||
|     androidTestImplementation 'com.android.support.test:runner:0.5' | ||||
|     androidTestImplementation 'com.android.support.test:rules:0.5' | ||||
| } | ||||
| 
 | ||||
| def isCi = "true".equals(System.getenv("CI")) | ||||
| def preDexEnabled = "true".equals(System.getProperty("pre-dex", "true")) | ||||
| 
 | ||||
| @ -179,6 +134,51 @@ android { | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| dependencies { | ||||
|     implementation 'com.android.support:support-v4:27.1.1' | ||||
|     implementation 'com.android.support:appcompat-v7:27.1.1' | ||||
|     implementation 'com.android.support:gridlayout-v7:27.1.1' | ||||
|     implementation 'com.android.support:support-annotations:27.1.1' | ||||
|     implementation 'com.android.support:recyclerview-v7:27.1.1' | ||||
|     implementation 'com.android.support:cardview-v7:27.1.1' | ||||
|     implementation 'com.android.support:design:27.1.1' | ||||
|     implementation 'com.android.support:support-vector-drawable:27.1.1' | ||||
|     implementation 'com.android.support.constraint:constraint-layout:1.1.0' | ||||
|     implementation 'com.android.support:palette-v7:27.1.1' | ||||
|     implementation 'com.android.support:preference-v14:27.1.1' | ||||
| 
 | ||||
|     implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' | ||||
|     implementation 'com.google.zxing:core:3.3.2' | ||||
|     implementation 'eu.chainfire:libsuperuser:1.0.0.201602271131' | ||||
|     implementation 'cc.mvdan.accesspoint:library:0.2.0' | ||||
|     implementation 'info.guardianproject.netcipher:netcipher:2.0.0-alpha1' | ||||
|     implementation 'info.guardianproject.panic:panic:0.5' | ||||
|     implementation 'commons-io:commons-io:2.5' | ||||
|     implementation 'commons-net:commons-net:3.5' | ||||
|     implementation 'org.jmdns:jmdns:3.5.3' | ||||
|     implementation 'org.nanohttpd:nanohttpd:2.3.1' | ||||
|     implementation 'ch.acra:acra:4.9.1' | ||||
|     implementation 'io.reactivex:rxjava:1.1.0' | ||||
|     implementation 'io.reactivex:rxandroid:0.23.0' | ||||
|     implementation 'com.hannesdorfmann:adapterdelegates3:3.0.1' | ||||
|     implementation 'com.ashokvarma.android:bottom-navigation-bar:2.0.4' | ||||
| 
 | ||||
|     implementation 'com.fasterxml.jackson.core:jackson-core:2.8.7' | ||||
|     implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.7' | ||||
|     implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.7' | ||||
| 
 | ||||
|     implementation 'org.bouncycastle:bcpkix-jdk15on:1.59' | ||||
|     implementation 'org.bouncycastle:bcprov-jdk15on:1.59' | ||||
| 
 | ||||
|     testImplementation 'org.robolectric:robolectric:3.8' | ||||
|     testImplementation 'junit:junit:4.12' | ||||
|     testImplementation 'org.mockito:mockito-core:2.7.22' | ||||
| 
 | ||||
|     androidTestImplementation 'com.android.support:support-annotations:25.3.1' | ||||
|     androidTestImplementation 'com.android.support.test:runner:0.5' | ||||
|     androidTestImplementation 'com.android.support.test:rules:0.5' | ||||
| } | ||||
| 
 | ||||
| checkstyle { | ||||
|     toolVersion = '7.2' | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Hans-Christoph Steiner
						Hans-Christoph Steiner