mainTemplate.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. if (file("${rootDir}/lebian").exists()) {
  12. classpath 'com.loveota.plugins:lbplugin:latest.release'
  13. }
  14. **BUILD_SCRIPT_DEPS**}
  15. }
  16. allprojects {
  17. repositories {
  18. google()
  19. jcenter()
  20. flatDir {
  21. dirs 'libs'
  22. }
  23. }
  24. }
  25. apply plugin: 'com.android.application'
  26. if (file("${rootDir}/lebian").exists()) {
  27. apply plugin: 'com.loveota.lbsdk'
  28. apply from: project(':lebian').file('lebian_app.gradle')
  29. }
  30. //**APPLY_PLUGINS**
  31. dependencies {
  32. implementation fileTree(dir: 'libs', include: ['*.jar'])
  33. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  34. implementation 'androidx.appcompat:appcompat:1.2.0'
  35. //implementation 'com.github.bumptech.glide:glide:4.11.0'
  36. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
  37. **DEPS**}
  38. android {
  39. namespace "com.unity3d.player"
  40. ndkPath "**NDKPATH**"
  41. compileSdkVersion **APIVERSION**
  42. buildToolsVersion '**BUILDTOOLS**'
  43. compileOptions {
  44. sourceCompatibility JavaVersion.VERSION_1_8
  45. targetCompatibility JavaVersion.VERSION_1_8
  46. }
  47. defaultConfig {
  48. minSdkVersion **MINSDKVERSION**
  49. targetSdkVersion **TARGETSDKVERSION**
  50. applicationId '**APPLICATIONID**'
  51. ndk {
  52. abiFilters **ABIFILTERS**
  53. }
  54. versionCode **VERSIONCODE**
  55. versionName '**VERSIONNAME**'
  56. consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
  57. }
  58. lintOptions {
  59. abortOnError false
  60. }
  61. //aaptOptions {
  62. // noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
  63. //}**SIGN**
  64. aaptOptions {
  65. noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
  66. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  67. }**PACKAGING_OPTIONS**
  68. buildTypes {
  69. debug {
  70. minifyEnabled **MINIFY_DEBUG**
  71. //useProguard **PROGUARD_DEBUG**
  72. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
  73. jniDebuggable true
  74. }
  75. release {
  76. minifyEnabled **MINIFY_RELEASE**
  77. // useProguard **PROGUARD_RELEASE**
  78. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD****SIGNCONFIG**
  79. }
  80. }**PACKAGING_OPTIONS****SPLITS**
  81. **BUILT_APK_LOCATION**
  82. bundle {
  83. language {
  84. enableSplit = false
  85. }
  86. density {
  87. enableSplit = false
  88. }
  89. abi {
  90. enableSplit = true
  91. }
  92. }
  93. }
  94. **IL_CPP_BUILD_SETUP**
  95. **SOURCE_BUILD_SETUP**
  96. **EXTERNAL_SOURCES**
  97. //**SPLITS_VERSION_CODE****REPOSITORIES****SOURCE_BUILD_SETUP**