build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.3"
  5. defaultConfig {
  6. applicationId "com.iflytek.mscv5plusdemo"
  7. minSdkVersion 16
  8. targetSdkVersion 30
  9. }
  10. buildTypes {
  11. release {
  12. minifyEnabled false
  13. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  14. }
  15. }
  16. sourceSets {
  17. main {
  18. jniLibs.srcDirs = ['libs']
  19. }
  20. }
  21. }
  22. dependencies {
  23. implementation files('libs/Msc.jar')
  24. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  25. implementation 'com.google.android.material:material:1.4.0'
  26. implementation 'androidx.appcompat:appcompat:1.3.0'
  27. }
  28. buildscript {
  29. repositories {
  30. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
  31. maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
  32. maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
  33. maven { url 'https://maven.aliyun.com/nexus/content/repositories/central' }
  34. maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  35. maven { url 'https://jitpack.io' }
  36. google()
  37. mavenCentral()
  38. }
  39. dependencies {
  40. classpath 'com.android.tools.build:gradle:4.2.2'
  41. }
  42. }
  43. allprojects {
  44. repositories {
  45. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
  46. maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
  47. maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
  48. maven { url 'https://maven.aliyun.com/nexus/content/repositories/central' }
  49. maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  50. maven { url 'https://jitpack.io' }
  51. google()
  52. mavenCentral()
  53. }
  54. }