mainTemplate.gradle 2.5 KB

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