You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
Groovy
55 lines
1.5 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'org.jetbrains.kotlin.android'
|
|
|
|
|
|
android {
|
|
compileSdkVersion 33
|
|
|
|
lintOptions{
|
|
abortOnError false
|
|
}
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 18
|
|
targetSdkVersion 33
|
|
versionCode 3
|
|
versionName "3.0"
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
consumerProguardFiles 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
consumerProguardFiles 'proguard-rules.pro'
|
|
}
|
|
}
|
|
task makejar(type: Jar) {
|
|
from file('build/intermediates/javac/debug/classes')
|
|
archiveName = '2301sdk' + defaultConfig.versionName + '.jar'
|
|
destinationDir = file('build/libs')
|
|
include "com/jstyle/blesdk2301/**"
|
|
|
|
|
|
}
|
|
makejar.dependsOn(build)
|
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.core:core-ktx:+'
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
|
}
|