build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. signingConfigs {
  5. sjlsxxgl {
  6. keyAlias 'sjlsxxgl'
  7. keyPassword '123456'
  8. storeFile file('sjlsxxgl.jks')
  9. storePassword '123456'
  10. }
  11. }
  12. compileSdkVersion rootProject.ext.compileSdkVersion
  13. defaultConfig {
  14. applicationId "com.mqby.sjlsxxgl"
  15. minSdkVersion rootProject.ext.minSdkVersion
  16. targetSdkVersion rootProject.ext.targetSdkVersion
  17. versionCode 1
  18. versionName "1.0"
  19. signingConfig signingConfigs.sjlsxxgl
  20. // Enabling multidex support.
  21. multiDexEnabled true
  22. ndk {
  23. //设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
  24. abiFilters "armeabi","armeabi-v7a","x86"//,"armeabi", "x86", "armeabi-v7a", "arm64-v8a", "x86_64"
  25. }
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  31. signingConfig signingConfigs.sjlsxxgl
  32. }
  33. debug {
  34. signingConfig signingConfigs.sjlsxxgl
  35. }
  36. }
  37. //配置自定义打包名称
  38. android.applicationVariants.all { variant ->
  39. variant.outputs.all { output ->
  40. def outputFile = output.outputFile
  41. if (outputFile != null && outputFile.name.endsWith('release.apk')) {
  42. def fileName = "sjpt_pad_release_" +
  43. "${defaultConfig.versionCode}_${new Date().format("yyyyMMddHHmm")}.apk"
  44. outputFileName = fileName
  45. }
  46. }
  47. }
  48. productFlavors {
  49. }
  50. sourceSets {
  51. main {
  52. jniLibs.srcDirs = ['libs']
  53. }
  54. }
  55. compileOptions {
  56. sourceCompatibility 1.8
  57. targetCompatibility 1.8
  58. }
  59. }
  60. dependencies {
  61. api fileTree(include: ['*.jar'], dir: 'libs')
  62. //注解View butterKnife
  63. api 'com.jakewharton:butterknife:9.0.0-rc2'
  64. annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc2'
  65. api project(':facesample')
  66. // api project(':modle')
  67. }