mainTemplate.gradle 2.4 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 'com.android.support.constraint:constraint-layout:1.1.3'
  32. **DEPS**}
  33. android {
  34. compileSdkVersion **APIVERSION**
  35. buildToolsVersion '**BUILDTOOLS**'
  36. compileOptions {
  37. sourceCompatibility JavaVersion.VERSION_1_8
  38. targetCompatibility JavaVersion.VERSION_1_8
  39. }
  40. defaultConfig {
  41. minSdkVersion 19
  42. targetSdkVersion **TARGETSDKVERSION**
  43. manifestPlaceholders.put("APPLOG_SCHEME","rangersapplog.byAx6uYt".toLowerCase())
  44. applicationId '**APPLICATIONID**'
  45. ndk {
  46. abiFilters **ABIFILTERS**
  47. }
  48. versionCode **VERSIONCODE**
  49. versionName '**VERSIONNAME**'
  50. }
  51. lintOptions {
  52. abortOnError false
  53. }
  54. aaptOptions {
  55. noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
  56. }**SIGN**
  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. }**SPLITS_VERSION_CODE****REPOSITORIES****SOURCE_BUILD_SETUP**