61 lines
1.5 KiB
Groovy
61 lines
1.5 KiB
Groovy
|
|
apply plugin: 'com.android.library'
|
||
|
|
apply plugin: 'org.jetbrains.kotlin.android'
|
||
|
|
|
||
|
|
def libraryVersionCode = 3002000
|
||
|
|
def libraryVersionName = "3.2.0"
|
||
|
|
|
||
|
|
android {
|
||
|
|
compileSdkVersion 31
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
minSdkVersion 16
|
||
|
|
targetSdkVersion 31
|
||
|
|
|
||
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
|
|
consumerProguardFiles 'consumer-rules.pro'
|
||
|
|
}
|
||
|
|
|
||
|
|
buildTypes {
|
||
|
|
release {
|
||
|
|
minifyEnabled false
|
||
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
namespace 'com.dantsu.escposprinter'
|
||
|
|
kotlinOptions {
|
||
|
|
jvmTarget = '17'
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||
|
|
implementation 'androidx.core:core-ktx:+'
|
||
|
|
testImplementation 'junit:junit:4.13.2'
|
||
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
||
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
||
|
|
implementation 'com.google.zxing:core:3.5.2'
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
//configurations.all {
|
||
|
|
// resolutionStrategy {
|
||
|
|
// force 'androidx.core:core-ktx:1.6.0'
|
||
|
|
// }
|
||
|
|
//}
|
||
|
|
//afterEvaluate {
|
||
|
|
// publishing {
|
||
|
|
// publications {
|
||
|
|
// release(MavenPublication) {
|
||
|
|
// from components.release
|
||
|
|
// groupId = 'com.github.DantSu'
|
||
|
|
// artifactId = 'ESCPOS-ThermalPrinter-Android'
|
||
|
|
// version = libraryVersionName
|
||
|
|
// }
|
||
|
|
// }
|
||
|
|
// }
|
||
|
|
//}
|