build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 28
  4. buildToolsVersion '28.0.3'
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0"
  10. ndk {
  11. moduleName 'TestIdcard'
  12. abiFilters "armeabi-v7a" //这个是对应的 APP_ABI
  13. //abiFilters "arm64-v8a" //这个是对应的 APP_ABI
  14. }
  15. }
  16. sourceSets {
  17. main {
  18. jniLibs.srcDirs = ['libs']
  19. }
  20. }
  21. }
  22. dependencies {
  23. //api(fileTree(include: ['*.jar'], dir: 'libs'))
  24. implementation 'androidx.appcompat:appcompat:1.2.0'
  25. implementation 'androidx.constraintlayout:constraintlayout:2.0.0'
  26. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  27. implementation 'com.google.android.material:material:1.0.0'
  28. implementation 'androidx.navigation:navigation-fragment:2.1.0'
  29. implementation 'androidx.navigation:navigation-ui:2.1.0'
  30. implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
  31. testImplementation 'junit:junit:4.+'
  32. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  33. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  34. api(files('libs/universal-image-loader-1.9.5.jar'))
  35. api(files('libs/otg.jar'))
  36. }