No Description

build.gradle 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. apply plugin: 'com.android.library'
  2. allprojects {
  3. gradle.projectsEvaluated {
  4. tasks.withType(JavaCompile) {
  5. options.encoding = 'utf-8'
  6. options.compilerArgs << "-Xlint:deprecation"
  7. }
  8. }
  9. }
  10. buildscript {
  11. repositories {
  12. google()
  13. jcenter()
  14. }
  15. dependencies {
  16. classpath 'com.android.tools.build:gradle:3.1.2'
  17. }
  18. }
  19. def DEFAULT_COMPILE_SDK_VERSION = 27
  20. def DEFAULT_BUILD_TOOLS_VERSION = "27.0.3"
  21. def DEFAULT_TARGET_SDK_VERSION = 27
  22. def DEFAULT_ANDROID_SUPPORT_VERSION = "27.1.0"
  23. android {
  24. compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
  25. buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
  26. defaultConfig {
  27. minSdkVersion 16
  28. targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
  29. versionCode 1
  30. versionName "1.0"
  31. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  32. }
  33. buildTypes {
  34. release {
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. splits {
  40. abi {
  41. enable true
  42. reset()
  43. include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
  44. // Specify that we do not want an additional universal SDK
  45. universalApk false
  46. }
  47. }
  48. }
  49. dependencies {
  50. def androidSupportVersion = rootProject.hasProperty("androidSupportVersion") ? rootProject.androidSupportVersion : DEFAULT_ANDROID_SUPPORT_VERSION
  51. // from internet
  52. implementation fileTree(dir: 'libs', include: ['*.jar'])
  53. implementation "com.android.support:appcompat-v7:$androidSupportVersion"
  54. implementation "io.agora.rtc:full-sdk:2.3.3"
  55. // from node_modules
  56. implementation "com.facebook.react:react-native:+"
  57. implementation 'com.google.code.gson:gson:2.8.5'
  58. }
  59. //
  60. //configurations.all {
  61. // exclude group: 'com.facebook.react', module: 'react-native'
  62. //}
  63. repositories {
  64. mavenCentral()
  65. mavenLocal()
  66. maven {
  67. url "$rootDir/../node_modules/react-native/android"
  68. }
  69. jcenter()
  70. google()
  71. }