baseProjectTemplate.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
  2. allprojects {
  3. buildscript {
  4. repositories {**ARTIFACTORYREPOSITORY**
  5. google()
  6. jcenter()
  7. maven {
  8. url "https://mvn.mob.com/android/"}
  9. }
  10. dependencies {
  11. // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
  12. // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
  13. // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
  14. // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
  15. classpath 'com.android.tools.build:gradle:3.4.3'
  16. // Add MobSDK classpath dependency
  17. classpath "com.mob.sdk:MobSDK2:+"
  18. **BUILD_SCRIPT_DEPS**
  19. }
  20. }
  21. repositories {**ARTIFACTORYREPOSITORY**
  22. google()
  23. jcenter()
  24. flatDir {
  25. dirs "${project(':unityLibrary').projectDir}/libs"
  26. }
  27. // Add MobSDK Maven repository
  28. maven {
  29. url "https://mvn.mob.com/android/"
  30. }
  31. }
  32. }
  33. task clean(type: Delete) {
  34. delete rootProject.buildDir
  35. }