build.gradle 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.nexilis.in)
  4. }
  5. android {
  6. namespace 'com.example.app'
  7. compileSdk 35
  8. // signingConfigs {
  9. // release {
  10. // keyAlias '***REPLACE***WITH***YOUR***KEYALIAS***'
  11. // storeFile file('***REPLACE***WITH***PATH***YOUR***KEY***')
  12. // storePassword '***REPLACE***WITH***YOUR***STOREPASSWORD***'
  13. // keyPassword '***REPLACE***WITH***YOUR***KEYPASSWORD***'
  14. // }
  15. // }
  16. defaultConfig {
  17. applicationId "com.example.app"
  18. minSdk 24
  19. targetSdk 35
  20. versionCode 1
  21. versionName "1.0"
  22. multiDexEnabled true
  23. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled true
  28. debuggable false
  29. jniDebuggable false
  30. renderscriptDebuggable false
  31. zipAlignEnabled true
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. debug {
  35. minifyEnabled false
  36. debuggable false
  37. jniDebuggable false
  38. renderscriptDebuggable false
  39. zipAlignEnabled true
  40. }
  41. }
  42. compileOptions {
  43. sourceCompatibility JavaVersion.VERSION_1_8
  44. targetCompatibility JavaVersion.VERSION_1_8
  45. }
  46. splits {
  47. density {
  48. enable true
  49. reset()
  50. include 'hdpi', 'mdpi', 'xhdpi', 'xxhdpi', 'xxxhdpi'
  51. }
  52. abi {
  53. enable true
  54. reset()
  55. include 'armeabi-v7a', 'arm64-v8a'
  56. universalApk false
  57. }
  58. }
  59. packagingOptions {
  60. exclude 'META-INF/DEPENDENCIES'
  61. exclude 'META-INF/LICENSE'
  62. exclude 'META-INF/LICENSE.txt'
  63. exclude 'META-INF/license.txt'
  64. exclude 'META-INF/NOTICE'
  65. exclude 'META-INF/NOTICE.txt'
  66. exclude 'META-INF/notice.txt'
  67. exclude 'META-INF/ASL2.0'
  68. doNotStrip "/armeabi-v7a/.so"
  69. doNotStrip "/arm64-v8a/.so"
  70. jniLibs {
  71. useLegacyPackaging = true
  72. }
  73. }
  74. }
  75. dependencies {
  76. implementation libs.appcompat
  77. implementation libs.material
  78. implementation libs.activity
  79. implementation libs.constraintlayout
  80. testImplementation libs.junit
  81. androidTestImplementation libs.ext.junit
  82. androidTestImplementation libs.espresso.core
  83. // *** Add Nexilis UI dependencies ***
  84. implementation('***REPLACE***WITH***NEXILIS***UI***VERSION***LIBRARY***') {
  85. transitive = true
  86. exclude group: 'org.apache.httpcomponents'
  87. }
  88. // *** Add Nexilis UC dependencies ***
  89. implementation('***REPLACE***WITH***NEXILIS***UC***VERSION***LIBRARY***') {
  90. transitive = true
  91. }
  92. // *** Add Nexilis SS dependencies ***
  93. implementation('***REPLACE***WITH***NEXILIS***SS***VERSION***LIBRARY***') {
  94. transitive = true
  95. }
  96. }