mainTemplate.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. if (file("${rootDir}/lebian").exists()) {
  24. apply plugin: 'com.loveota.lbsdk'
  25. apply from: project(':lebian').file('lebian_app.gradle')
  26. }
  27. //**APPLY_PLUGINS**
  28. dependencies {
  29. implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
  30. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  31. implementation 'androidx.appcompat:appcompat:1.6.0'
  32. implementation 'com.github.bumptech.glide:glide:4.11.0'
  33. //中台
  34. implementation 'androidx.appcompat:appcompat:1.6.1'
  35. implementation 'com.adjust.sdk:adjust-android:4.31.0'
  36. implementation 'com.google.android.gms:play-services-auth:20.6.0'
  37. implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
  38. //Json
  39. implementation('com.google.code.gson:gson:2.8.6')
  40. **DEPS**}
  41. android {
  42. namespace "com.unity3d.player"
  43. ndkPath "**NDKPATH**"
  44. compileSdkVersion **APIVERSION**
  45. buildToolsVersion '**BUILDTOOLS**'
  46. compileOptions {
  47. sourceCompatibility JavaVersion.VERSION_1_8
  48. targetCompatibility JavaVersion.VERSION_1_8
  49. }
  50. defaultConfig {
  51. minSdkVersion **MINSDKVERSION**
  52. targetSdkVersion **TARGETSDKVERSION**
  53. applicationId '**APPLICATIONID**'
  54. ndk {
  55. abiFilters **ABIFILTERS**
  56. }
  57. versionCode **VERSIONCODE**
  58. versionName '**VERSIONNAME**'
  59. consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
  60. }
  61. lintOptions {
  62. abortOnError false
  63. }
  64. //aaptOptions {
  65. // noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
  66. //}**SIGN**
  67. aaptOptions {
  68. noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
  69. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  70. }**PACKAGING_OPTIONS**
  71. buildTypes {
  72. debug {
  73. minifyEnabled **MINIFY_DEBUG**
  74. //useProguard **PROGUARD_DEBUG**
  75. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
  76. jniDebuggable true
  77. }
  78. release {
  79. minifyEnabled **MINIFY_RELEASE**
  80. // useProguard **PROGUARD_RELEASE**
  81. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD****SIGNCONFIG**
  82. }
  83. }**PACKAGING_OPTIONS****SPLITS**
  84. **BUILT_APK_LOCATION**
  85. bundle {
  86. language {
  87. enableSplit = false
  88. }
  89. density {
  90. enableSplit = false
  91. }
  92. abi {
  93. enableSplit = true
  94. }
  95. }
  96. }
  97. **IL_CPP_BUILD_SETUP**
  98. **SOURCE_BUILD_SETUP**
  99. **EXTERNAL_SOURCES**
  100. //**SPLITS_VERSION_CODE****REPOSITORIES****SOURCE_BUILD_SETUP**