build.gradle 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace 'com.example.nexilissamplecodeburger'
  6. compileSdkVersion 34
  7. // signingConfigs {
  8. // release {
  9. // keyAlias '***REPLACE***WITH***YOUR***KEYALIAS***'
  10. // storeFile file('***REPLACE***WITH***PATH***YOUR***KEY***')
  11. // storePassword '***REPLACE***WITH***YOUR***STOREPASSWORD***'
  12. // keyPassword '***REPLACE***WITH***YOUR***KEYPASSWORD***'
  13. // }
  14. // }
  15. defaultConfig {
  16. applicationId "com.example.nexilissamplecodeburger"
  17. minSdk 23
  18. targetSdkVersion 34
  19. versionCode 1
  20. versionName "1.0"
  21. resConfigs "in", "en"
  22. ndk.abiFilters 'armeabi-v7a', 'arm64-v8a'
  23. multiDexEnabled true
  24. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled true
  29. shrinkResources true
  30. debuggable false
  31. jniDebuggable false
  32. renderscriptDebuggable false
  33. zipAlignEnabled true
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. lintOptions {
  42. abortOnError false
  43. }
  44. packagingOptions {
  45. exclude 'META-INF/DEPENDENCIES'
  46. exclude 'META-INF/LICENSE'
  47. exclude 'META-INF/LICENSE.txt'
  48. exclude 'META-INF/license.txt'
  49. exclude 'META-INF/NOTICE'
  50. exclude 'META-INF/NOTICE.txt'
  51. exclude 'META-INF/notice.txt'
  52. exclude 'META-INF/ASL2.0'
  53. doNotStrip "/armeabi-v7a/.so"
  54. doNotStrip "/arm64-v8a/.so"
  55. jniLibs {
  56. useLegacyPackaging = true
  57. }
  58. }
  59. }
  60. dependencies {
  61. implementation 'androidx.appcompat:appcompat:1.6.1'
  62. implementation 'com.google.android.material:material:1.9.0'
  63. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  64. testImplementation 'junit:junit:4.13.2'
  65. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  66. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  67. // *** Add Nexilis Lite dependencies ***
  68. implementation('***REPLACE***WITH***NEXILIS***VERSION***LIBRARY***') {
  69. transitive = true
  70. exclude group: 'org.apache.httpcomponents'
  71. }
  72. }