mainTemplate.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:3.2.0'
  9. **BUILD_SCRIPT_DEPS**}
  10. }
  11. allprojects {
  12. repositories {
  13. google()
  14. jcenter()
  15. flatDir {
  16. dirs 'libs'
  17. }
  18. }
  19. }
  20. apply plugin: 'com.android.application'
  21. **APPLY_PLUGINS**
  22. dependencies {
  23. implementation fileTree(dir: 'libs', include: ['*.jar'])
  24. **DEPS**}
  25. android {
  26. compileSdkVersion **APIVERSION**
  27. buildToolsVersion '**BUILDTOOLS**'
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. defaultConfig {
  33. minSdkVersion 21
  34. targetSdkVersion 28
  35. applicationId '**APPLICATIONID**'
  36. ndk {
  37. abiFilters **ABIFILTERS**
  38. }
  39. versionCode **VERSIONCODE**
  40. versionName '**VERSIONNAME**'
  41. }
  42. lintOptions {
  43. abortOnError false
  44. }
  45. aaptOptions {
  46. noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
  47. }**SIGN**
  48. buildTypes {
  49. debug {
  50. minifyEnabled **MINIFY_DEBUG**
  51. useProguard **PROGUARD_DEBUG**
  52. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
  53. jniDebuggable true
  54. }
  55. release {
  56. minifyEnabled **MINIFY_RELEASE**
  57. useProguard **PROGUARD_RELEASE**
  58. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD****SIGNCONFIG**
  59. }
  60. }**PACKAGING_OPTIONS****SPLITS**
  61. **BUILT_APK_LOCATION**
  62. bundle {
  63. language {
  64. enableSplit = false
  65. }
  66. density {
  67. enableSplit = false
  68. }
  69. abi {
  70. enableSplit = true
  71. }
  72. }
  73. }**SPLITS_VERSION_CODE****REPOSITORIES****SOURCE_BUILD_SETUP**