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:
kai-morich 2019-11-13 07:47:04 +01:00
parent 24187b3af6
commit fd2055791a
3 changed files with 4 additions and 8 deletions

View File

@ -7,19 +7,14 @@ android {
defaultConfig {
minSdkVersion 17
targetSdkVersion 28
consumerProguardFiles 'proguard-rules.pro'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments = [ // Raspi Windows LinuxVM ...
'rfc2217_server_host': '192.168.0.100',
'rfc2217_server_nonstandard_baudrates': 'true', // true false false
]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {

View File

@ -0,0 +1 @@
-keep class com.hoho.android.usbserial.driver.* { *; }

View File

@ -5,7 +5,7 @@ publishing {
maven(MavenPublication) {
groupId 'com.github.mik3y'
artifactId 'usb-serial-for-android'
version '1.x.0'
version '2.1.0a'
afterEvaluate {
artifact androidSourcesJar
artifact bundleReleaseAar