build.gradle 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. apply plugin: 'com.android.library'
  2. buildscript {
  3. repositories {
  4. maven {
  5. url "https://plugins.gradle.org/m2/"
  6. }
  7. }
  8. dependencies {
  9. classpath 'gradle.plugin.io.pry.gradle.offline_dependencies:gradle-offline-dependencies-plugin:0.5.0'
  10. }
  11. }
  12. apply plugin: 'io.pry.gradle.offline_dependencies'
  13. offlineDependencies {
  14. repositories {
  15. google()
  16. jcenter()
  17. maven { url 'https://github.com/jitsi/jitsi-maven-repository/raw/master/releases' }
  18. }
  19. includeSources = false
  20. includeJavadocs = false
  21. includePoms = true
  22. includeIvyXmls = false
  23. includeBuildscriptDependencies = false
  24. }
  25. android {
  26. compileSdkVersion compile_version
  27. defaultConfig {
  28. minSdkVersion min_version
  29. targetSdkVersion target_version
  30. versionCode 1
  31. versionName "1.0"
  32. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  33. }
  34. buildTypes {
  35. release {
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  38. }
  39. }
  40. }
  41. configurations.all {
  42. resolutionStrategy.eachDependency { details ->
  43. if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
  44. details.useVersion '0.61.1'
  45. }
  46. }
  47. }
  48. dependencies {
  49. // jitsi,
  50. api files('libs/jitsi-meet-sdk-2.4.0-4.aar')
  51. // jitsi自己的依赖,
  52. api 'com.facebook.react:react-native:0.61.1'
  53. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  54. implementation 'androidx.appcompat:appcompat:1.1.0'
  55. implementation 'androidx.fragment:fragment:1.1.0'
  56. implementation 'org.webkit:android-jsc:r245459'
  57. implementation 'com.dropbox.core:dropbox-core-sdk:3.0.8'
  58. implementation 'com.jakewharton.timber:timber:4.7.1'
  59. implementation 'com.squareup.duktape:duktape-android:1.3.0'
  60. implementation('com.facebook.react:react-native-background-timer:2.1.1-jitsi-2535222') {
  61. exclude group: 'com.facebook.react', module: 'react-native'
  62. }
  63. implementation('com.facebook.react:react-native-calendar-events:1.7.3-jitsi-2535222') {
  64. exclude group: 'com.facebook.react', module: 'react-native'
  65. }
  66. implementation('com.facebook.react:react-native-community-async-storage:1.3.4-jitsi-2535222') {
  67. exclude group: 'com.facebook.react', module: 'react-native'
  68. }
  69. implementation('com.facebook.react:react-native-community_netinfo:4.1.5-jitsi-2535222') {
  70. exclude group: 'com.facebook.react', module: 'react-native'
  71. }
  72. implementation('com.facebook.react:react-native-immersive:2.0.0-jitsi-2535222') {
  73. exclude group: 'com.facebook.react', module: 'react-native'
  74. }
  75. implementation('com.facebook.react:react-native-keep-awake:4.0.0-jitsi-2535222') {
  76. exclude group: 'com.facebook.react', module: 'react-native'
  77. }
  78. implementation('com.facebook.react:react-native-linear-gradient:2.5.6-jitsi-2535222') {
  79. exclude group: 'com.facebook.react', module: 'react-native'
  80. }
  81. implementation('com.facebook.react:react-native-sound:0.11.0-jitsi-2535222') {
  82. exclude group: 'com.facebook.react', module: 'react-native'
  83. }
  84. implementation('com.facebook.react:react-native-svg:9.7.1-jitsi-2535222') {
  85. exclude group: 'com.facebook.react', module: 'react-native'
  86. }
  87. implementation('com.facebook.react:react-native-webrtc:1.75.0-jitsi-2535222') {
  88. exclude group: 'com.facebook.react', module: 'react-native'
  89. }
  90. implementation('com.facebook.react:react-native-webview:7.4.1-jitsi-2535222') {
  91. exclude group: 'com.facebook.react', module: 'react-native'
  92. }
  93. }