Advertisement
you_are_adopted

ndkcode module build.gradle

Feb 23rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.05 KB | None | 0 0
  1. apply plugin: 'com.android.library'
  2.  
  3. android {
  4.     compileSdkVersion 21
  5.     buildToolsVersion "25.0.0"
  6.     compileOptions.encoding = 'ISO-8859-1'
  7.  
  8.     sourceSets.main.jni.srcDirs = []
  9.  
  10.     defaultConfig {
  11.         minSdkVersion 21
  12.         targetSdkVersion 21
  13.         versionCode 1
  14.         versionName "1.0"
  15.  
  16.         ndk {
  17.             moduleName "xxxx_jni"
  18.             // Specifies the ABI configurations of your native
  19.             // libraries Gradle should build and package with your APK.
  20.             abiFilters 'armeabi-v7a'
  21.         }
  22.     }
  23.  
  24.     buildTypes {
  25.         debug {
  26.             minifyEnabled false
  27.             useProguard false
  28.         }
  29.  
  30.         release {
  31.             minifyEnabled false
  32.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  33.         }
  34.     }
  35.  
  36.     externalNativeBuild {
  37.         ndkBuild {
  38.             path 'src/main/jni/Android.mk'
  39.         }
  40.     }
  41. }
  42.  
  43. dependencies {
  44.     compile 'com.android.support:support-v4:21.+'
  45.     //compile files('libs/metaiosdk.jar')
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement