mainTemplate.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. dependencies {
  29. implementation fileTree(dir: 'libs', include: ['*.jar'])
  30. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  31. **DEPS**}
  32. android {
  33. compileSdkVersion 29
  34. buildToolsVersion '**BUILDTOOLS**'
  35. compileOptions {
  36. sourceCompatibility JavaVersion.VERSION_1_8
  37. targetCompatibility JavaVersion.VERSION_1_8
  38. }
  39. defaultConfig {
  40. minSdkVersion 16
  41. targetSdkVersion 26
  42. applicationId '**APPLICATIONID**'
  43. ndk {
  44. abiFilters **ABIFILTERS**
  45. }
  46. versionCode **VERSIONCODE**
  47. versionName '**VERSIONNAME**'
  48. }
  49. lintOptions {
  50. abortOnError false
  51. }
  52. aaptOptions {
  53. noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
  54. }**SIGN**
  55. buildTypes {
  56. debug {
  57. minifyEnabled **MINIFY_DEBUG**
  58. useProguard **PROGUARD_DEBUG**
  59. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
  60. jniDebuggable true
  61. }
  62. release {
  63. minifyEnabled **MINIFY_RELEASE**
  64. useProguard **PROGUARD_RELEASE**
  65. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD****SIGNCONFIG**
  66. }
  67. }**PACKAGING_OPTIONS****SPLITS**
  68. **BUILT_APK_LOCATION**
  69. bundle {
  70. language {
  71. enableSplit = false
  72. }
  73. density {
  74. enableSplit = false
  75. }
  76. abi {
  77. enableSplit = true
  78. }
  79. }
  80. }**SPLITS_VERSION_CODE****REPOSITORIES****SOURCE_BUILD_SETUP**