설명 없음

build.gradle 2.1KB

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