1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00
serial/android/library/build.gradle
Cheng Zhong 8acb986415 Added android support
1. Added Android NDK support for serial.
2. Give a simple sample app for android.
2016-01-21 18:19:15 +08:00

50 lines
965 B
Groovy

apply plugin: 'com.android.library'
//apply plugin: 'com.android.model.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
//useDeprecatedNdk true
/*
ndk {
moduleName "serial"
}
*/
sourceSets {
main {
jni.srcDirs = [] //disable automatic ndk-build call
}
}
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
jniDebuggable true
}
}
dexOptions {
incremental true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}