build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 29
  4. defaultConfig {
  5. applicationId "com.printer.demo"
  6. minSdkVersion 15
  7. targetSdkVersion 29
  8. versionCode 1
  9. versionName "5.7.1"
  10. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  11. multiDexEnabled true
  12. // ndk {
  13. // abiFilters "armeabi", "armeabi-v7a", "x86"
  14. // }
  15. }
  16. sourceSets {
  17. main {
  18. jniLibs.srcDirs = ['libs']
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. lintOptions {
  28. checkReleaseBuilds false
  29. // Or, if you prefer, you can continue to check for errors in release builds,
  30. // but continue the build even when errors are found:
  31. abortOnError false
  32. }
  33. }
  34. dependencies {
  35. implementation fileTree(include: ['*.jar'], dir: 'libs')
  36. implementation 'androidx.appcompat:appcompat:1.0.0'
  37. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  38. implementation 'com.google.android.material:material:1.0.0'
  39. testImplementation 'junit:junit:4.12'
  40. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  41. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
  42. compile 'com.allenliu.versionchecklib:library:2.0.5'
  43. implementation files('libs/printersdkv5.7.2.jar')
  44. }