mirror of
				https://github.com/mik3y/usb-serial-for-android
				synced 2025-10-31 02:17:23 +00:00 
			
		
		
		
	added proguard rules
now they are part of the .aar library, before you had to add them to each release app
This commit is contained in:
		
							parent
							
								
									24187b3af6
								
							
						
					
					
						commit
						fd2055791a
					
				| @ -7,19 +7,14 @@ android { | |||||||
|     defaultConfig { |     defaultConfig { | ||||||
|         minSdkVersion 17 |         minSdkVersion 17 | ||||||
|         targetSdkVersion 28 |         targetSdkVersion 28 | ||||||
|  |         consumerProguardFiles 'proguard-rules.pro' | ||||||
|  |          | ||||||
|         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||||||
|         testInstrumentationRunnerArguments = [                    // Raspi   Windows   LinuxVM   ... |         testInstrumentationRunnerArguments = [                    // Raspi   Windows   LinuxVM   ... | ||||||
|                 'rfc2217_server_host': '192.168.0.100', |                 'rfc2217_server_host': '192.168.0.100', | ||||||
|                 'rfc2217_server_nonstandard_baudrates': 'true',   // true    false     false |                 'rfc2217_server_nonstandard_baudrates': 'true',   // true    false     false | ||||||
|         ] |         ] | ||||||
|     } |     } | ||||||
| 
 |  | ||||||
|     buildTypes { |  | ||||||
|         release { |  | ||||||
|             minifyEnabled false |  | ||||||
|             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' |  | ||||||
|         } |  | ||||||
|     } |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
|  | |||||||
							
								
								
									
										1
									
								
								usbSerialForAndroid/proguard-rules.pro
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								usbSerialForAndroid/proguard-rules.pro
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | |||||||
|  | -keep class com.hoho.android.usbserial.driver.* { *; } | ||||||
| @ -5,7 +5,7 @@ publishing { | |||||||
|         maven(MavenPublication) { |         maven(MavenPublication) { | ||||||
|             groupId 'com.github.mik3y' |             groupId 'com.github.mik3y' | ||||||
|             artifactId 'usb-serial-for-android' |             artifactId 'usb-serial-for-android' | ||||||
|             version '1.x.0' |             version '2.1.0a' | ||||||
|             afterEvaluate { |             afterEvaluate { | ||||||
|                 artifact androidSourcesJar |                 artifact androidSourcesJar | ||||||
|                 artifact bundleReleaseAar |                 artifact bundleReleaseAar | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user