mirror of
				https://github.com/mik3y/usb-serial-for-android
				synced 2025-10-27 16:37:18 +00:00 
			
		
		
		
	Updated Build Variants (markdown)
							parent
							
								
									4d94b0ef70
								
							
						
					
					
						commit
						6a13519d3e
					
				| @ -16,9 +16,22 @@ If you need a jar file (e.g. for cordova) run gradle task `createFullJarRelease` | |||||||
|   |   | ||||||
| # Local maven repository | # Local maven repository | ||||||
| 
 | 
 | ||||||
| To use a local maven repository (e.g. for testing new library version) comment in | To use a local maven repository (e.g. for developing usb-serial-for-android enhancements and testing in your application) comment in | ||||||
| 
 | 
 | ||||||
|     //apply from: 'publishToMavenLocal.gradle' |     //apply from: 'publishToMavenLocal.gradle' | ||||||
| 
 | 
 | ||||||
| set correct version and run gradle task `publishToMavenLocal`.  | This script is not enabled by default, as it confuses jitpack.  | ||||||
| This include file is not enabled by default, as it confuses jitpack | 
 | ||||||
|  | In your application toplevel `build.gradle` file add *mavenLocal* repository | ||||||
|  | 
 | ||||||
|  |     allprojects { | ||||||
|  |         repositories { | ||||||
|  |             mavenLocal() | ||||||
|  |             ... | ||||||
|  | 
 | ||||||
|  | To consume new changes you have to  | ||||||
|  | 1. increase version in `publishToMavenLocal.gradle` | ||||||
|  | 2. run gradle task `publishToMavenLocal` | ||||||
|  | 3. adjust usb-serial-for-android version in your `app/build.gradle` | ||||||
|  | 
 | ||||||
|  | Instead of executing steps 1.+3. you could also use some [gradle tricks](https://stackoverflow.com/questions/13565082/how-can-i-force-gradle-to-redownload-dependencies) to force dependency update | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user