mainTemplate.gradle 2.5 KB

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