mainTemplate.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. apply plugin: 'com.android.library'
  2. **APPLY_PLUGINS**
  3. dependencies {
  4. implementation fileTree(dir: 'libs', include: ['*.jar'])
  5. // Android Resolver Dependencies Start
  6. implementation 'com.android.support:appcompat-v7:28.0.0' // Assets/Scripts/ThirdParty/AnyThinkAds/Plugins/Android/China/Editor/Dependencies.xml:3
  7. implementation 'com.taptap.sdk:tap-cloudsave-unity:4.8.2' // Assets/TapSDK/CloudSave/Mobile/Editor/NativeDependencies.xml:7
  8. implementation 'com.taptap.sdk:tap-core-unity:4.8.2' // Assets/TapSDK/Core/Mobile/Editor/NativeDependencies.xml:7
  9. implementation 'com.taptap.sdk:tap-login-unity:4.8.2' // Assets/TapSDK/Login/Mobile/Editor/NativeDependencies.xml:7
  10. // Android Resolver Dependencies End
  11. **DEPS**}
  12. // Android Resolver Exclusions Start
  13. android {
  14. packagingOptions {
  15. exclude ('/lib/armeabi/*' + '*')
  16. exclude ('/lib/mips/*' + '*')
  17. exclude ('/lib/mips64/*' + '*')
  18. exclude ('/lib/x86/*' + '*')
  19. exclude ('/lib/x86_64/*' + '*')
  20. }
  21. }
  22. // Android Resolver Exclusions End
  23. android {
  24. namespace "com.unity3d.player"
  25. ndkPath "**NDKPATH**"
  26. compileSdkVersion **APIVERSION**
  27. buildToolsVersion '**BUILDTOOLS**'
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_11
  30. targetCompatibility JavaVersion.VERSION_11
  31. }
  32. defaultConfig {
  33. minSdkVersion **MINSDKVERSION**
  34. targetSdkVersion **TARGETSDKVERSION**
  35. ndk {
  36. abiFilters **ABIFILTERS**
  37. }
  38. versionCode **VERSIONCODE**
  39. versionName '**VERSIONNAME**'
  40. consumerProguardFiles 'proguard-tuanjie.txt'**USER_PROGUARD**
  41. }
  42. lintOptions {
  43. abortOnError false
  44. }
  45. aaptOptions {
  46. noCompress = **BUILTIN_NOCOMPRESS** + tuanjieStreamingAssets.tokenize(', ')
  47. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
  48. }**PACKAGING_OPTIONS**
  49. }
  50. **IL_CPP_BUILD_SETUP**
  51. **SOURCE_BUILD_SETUP**
  52. **EXTERNAL_SOURCES**