build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //apply plugin: 'com.android.application'
  2. apply plugin: 'com.android.library'
  3. android {
  4. compileSdkVersion 30
  5. buildToolsVersion "30.0.2"
  6. defaultConfig {
  7. // applicationId "com.starrtc.demo"
  8. minSdkVersion 15
  9. targetSdkVersion 30
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. ndk {
  14. moduleName "app"
  15. abiFilters 'armeabi-v7a','arm64-v8a'
  16. }
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. sourceSets {
  25. main {
  26. jniLibs.srcDirs = ['libs']
  27. }
  28. }
  29. lintOptions {
  30. checkReleaseBuilds false
  31. // Or, if you prefer, you can continue to check for errors in release builds,
  32. // but continue the build even when errors are found:
  33. abortOnError false
  34. }
  35. }
  36. dependencies {
  37. // implementation 'androidx.appcompat:appcompat:1.0.2'
  38. // implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  39. // testImplementation 'junit:junit:4.12'
  40. // androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  41. // androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  42. // implementation 'com.android.support:appcompat-v7:25.3.1'
  43. // implementation 'com.android.support:recyclerview-v7:25.3.1'
  44. // implementation 'com.android.support.constraint:constraint-layout:2.0.0-alpha4'
  45. // implementation files('libs\\star_rtc_sdk.jar')
  46. compile fileTree(dir: 'libs', include: ['*.jar'])
  47. androidTestCompile('com.android.support.test.espresso:espresso-core:+', {
  48. exclude group: 'com.android.support', module: 'support-annotations'
  49. })
  50. compile 'com.android.support:appcompat-v7:26.+'
  51. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  52. testCompile 'junit:junit:4.12'
  53. compile 'com.android.support:recyclerview-v7:24.2.0'
  54. compile files('libs/star_rtc_sdk.jar')
  55. }