Nav apraksta

build.gradle 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 "com.android.support:appcompat-v7:$androidSupportVersion"
  53. implementation "io.agora.rtc:full-sdk:2.3.3"
  54. // from node_modules
  55. implementation "com.facebook.react:react-native:+"
  56. }
  57. repositories {
  58. mavenCentral()
  59. mavenLocal()
  60. maven {
  61. url "$rootDir/../node_modules/react-native-agora/android"
  62. }
  63. jcenter()
  64. google()
  65. }