mirror of
				https://github.com/mik3y/usb-serial-for-android
				synced 2025-10-30 18:07:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| plugins {
 | |
|     id 'com.android.library'
 | |
|     id 'maven-publish'
 | |
| }
 | |
| 
 | |
| android {
 | |
|     compileSdkVersion 32
 | |
| 
 | |
|     defaultConfig {
 | |
|         minSdkVersion 17
 | |
|         targetSdkVersion 32
 | |
|         consumerProguardFiles 'proguard-rules.pro'
 | |
|         
 | |
|         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 | |
|         testInstrumentationRunnerArguments = [                    // Raspi   Windows   LinuxVM   ...
 | |
|                 'rfc2217_server_host': '192.168.0.186',
 | |
|                 'rfc2217_server_nonstandard_baudrates': 'true',   // true    false     false
 | |
|         ]
 | |
|     }
 | |
|     compileOptions {
 | |
|         sourceCompatibility JavaVersion.VERSION_1_8
 | |
|         targetCompatibility JavaVersion.VERSION_1_8
 | |
|     }
 | |
| }
 | |
| 
 | |
| dependencies {
 | |
|     implementation "androidx.annotation:annotation:1.3.0"
 | |
|     implementation 'androidx.test:core:1.4.0'
 | |
|     testImplementation 'junit:junit:4.13.2'
 | |
|     testImplementation 'org.mockito:mockito-core:1.10.19'
 | |
|     androidTestImplementation 'androidx.test:runner:1.4.0'
 | |
|     androidTestImplementation 'commons-net:commons-net:3.8.0'
 | |
|     androidTestImplementation 'org.apache.commons:commons-lang3:3.11'
 | |
| }
 | |
| 
 | |
| // gradle task: publishToMavenLocal
 | |
| project.afterEvaluate {
 | |
|     publishing {
 | |
|         publications {
 | |
|             release(MavenPublication) {
 | |
|                 from components.release // change to anyDeviceRelease if coverage is enabled
 | |
|                 artifact androidSourcesJar
 | |
| 
 | |
|                 // values used for local maven repo, jitpack uses github release:
 | |
|                 groupId 'com.github.mik3y'
 | |
|                 artifactId 'usb-serial-for-android'
 | |
|                 version 'v3.5.0beta'
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| task androidSourcesJar(type: Jar) {
 | |
|     classifier 'sources'
 | |
|     from android.sourceSets.main.java.srcDirs
 | |
| }
 | |
| 
 | |
| //apply from: 'coverage.gradle'
 |