usb-serial-for-android/usbSerialForAndroid/build.gradle

60 wiersze
1.8 KiB
Groovy
Czysty Zwykły widok Historia

2021-09-21 18:38:32 +00:00
plugins {
id 'com.android.library'
id 'maven-publish'
}
2014-04-01 06:40:49 +00:00
android {
2023-03-11 10:11:51 +00:00
compileSdkVersion 33
2014-04-01 06:40:49 +00:00
defaultConfig {
minSdkVersion 17
2023-03-11 10:11:51 +00:00
targetSdkVersion 33
consumerProguardFiles 'proguard-rules.pro'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2019-10-26 13:40:40 +00:00
testInstrumentationRunnerArguments = [ // Raspi Windows LinuxVM ...
2024-02-18 08:35:16 +00:00
'rfc2217_server_host': '192.168.0.147',
2019-10-26 13:40:40 +00:00
'rfc2217_server_nonstandard_baudrates': 'true', // true false false
2019-10-20 20:12:56 +00:00
]
2014-04-01 06:40:49 +00:00
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2023-03-11 08:35:03 +00:00
namespace 'com.hoho.android.usbserial'
2023-07-04 18:46:36 +00:00
publishing {
// if coverage is enabled, change 'release' to 'anyDeviceRelease' or comment out publishing rule
singleVariant('release') {
withSourcesJar()
}
}
2014-04-01 06:40:49 +00:00
}
dependencies {
2024-02-18 08:35:16 +00:00
implementation "androidx.annotation:annotation:1.7.1"
testImplementation 'junit:junit:4.13.2'
2024-02-18 08:35:16 +00:00
testImplementation 'org.mockito:mockito-core:5.8.0'
2023-03-11 08:35:03 +00:00
androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'androidx.test:runner:1.5.2'
2024-02-18 08:35:16 +00:00
androidTestImplementation 'commons-net:commons-net:3.10.0'
2023-07-04 18:46:36 +00:00
androidTestImplementation 'org.apache.commons:commons-lang3:3.12.0'
}
2021-09-21 18:38:32 +00:00
// gradle task: publishToMavenLocal
project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
2023-07-04 18:46:36 +00:00
from components.release
2021-09-21 18:38:32 +00:00
// values used for local maven repo, jitpack uses github release:
groupId 'com.github.mik3y'
artifactId 'usb-serial-for-android'
2023-07-04 18:46:36 +00:00
version '3.5.2beta'
2021-09-21 18:38:32 +00:00
}
}
}
}
2019-10-20 20:12:56 +00:00
//apply from: 'coverage.gradle'