build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext.kotlin_version = "1.7.10"
  4. repositories {
  5. google()
  6. maven {
  7. allowInsecureProtocol = true
  8. url 'https://jitpack.io'
  9. }
  10. mavenCentral()
  11. maven {
  12. allowInsecureProtocol = true
  13. url "https://mirrors.tencent.com/nexus/repository/maven-public/"
  14. }
  15. maven {
  16. allowInsecureProtocol = true
  17. url 'http://maven.faceunity.com/repository/maven-public/'
  18. }
  19. }
  20. dependencies {
  21. classpath "com.android.tools.build:gradle:7.2.1"
  22. classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
  23. classpath 'com.google.gms:google-services:4.3.10'
  24. classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
  25. classpath 'com.google.firebase:perf-plugin:1.4.1'
  26. // NOTE: Do not place your application dependencies here; they belong
  27. // in the individual module build.gradle files
  28. }
  29. }
  30. allprojects {
  31. repositories {
  32. flatDir {
  33. dirs project(':room').file('libs')
  34. }
  35. google()
  36. maven {
  37. allowInsecureProtocol = true
  38. url 'https://jitpack.io'
  39. }
  40. mavenCentral()
  41. maven {
  42. allowInsecureProtocol = true
  43. url "https://mirrors.tencent.com/nexus/repository/maven-public/"
  44. }
  45. maven {
  46. allowInsecureProtocol = true
  47. url 'http://maven.faceunity.com/repository/maven-public/'
  48. }
  49. }
  50. configurations.all{
  51. resolutionStrategy{
  52. force 'com.squareup.okhttp3:okhttp:4.9.1'
  53. }
  54. }
  55. }
  56. task clean(type: Delete) {
  57. delete rootProject.buildDir
  58. }