build.gradle 2.6 KB

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