1 apply plugin: 'com.android.application'
5 buildToolsVersion "23.0.3"
8 applicationId "org.libwebsockets.client"
17 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
28 compile fileTree(dir: 'libs', include: ['*.jar'])
29 testCompile 'junit:junit:4.12'
30 compile 'com.android.support:appcompat-v7:23.3.0'
33 task buildNativeLibs(type: Exec, description: "compile the native libraries") {
34 commandLine 'make', '-f', 'NativeLibs.mk', '-C', 'src/main/jni', 'all'
37 task cleanNativeLibs(type: Exec, description: "clean the native libraries source tree") {
38 commandLine 'make', '-f', 'NativeLibs.mk', '-C', 'src/main/jni', 'clean-ndk'
41 tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn buildNativeLibs }
42 clean.dependsOn 'cleanNativeLibs'