Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mainTemplate.gradle 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. apply plugin: 'com.android.library'
  2. apply from: '../shared/keepUnitySymbols.gradle'
  3. **APPLY_PLUGINS**
  4. dependencies {
  5. implementation fileTree(dir: 'libs', include: ['*.jar'])
  6. // Android Resolver Dependencies Start
  7. implementation 'com.google.android.gms:play-services-ads:22.6.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7
  8. implementation 'com.google.android.ump:user-messaging-platform:2.1.0' // Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7
  9. // Android Resolver Dependencies End
  10. **DEPS**}
  11. // Android Resolver Exclusions Start
  12. android {
  13. packaging {
  14. exclude ('/lib/armeabi/*' + '*')
  15. exclude ('/lib/mips/*' + '*')
  16. exclude ('/lib/mips64/*' + '*')
  17. exclude ('/lib/x86/*' + '*')
  18. exclude ('/lib/x86_64/*' + '*')
  19. }
  20. }
  21. // Android Resolver Exclusions End
  22. android {
  23. namespace "com.unity3d.player"
  24. ndkPath "**NDKPATH**"
  25. ndkVersion "**NDKVERSION**"
  26. compileSdk **APIVERSION**
  27. buildToolsVersion = "**BUILDTOOLS**"
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_17
  30. targetCompatibility JavaVersion.VERSION_17
  31. }
  32. defaultConfig {
  33. minSdk **MINSDK**
  34. targetSdk **TARGETSDK**
  35. ndk {
  36. abiFilters **ABIFILTERS**
  37. debugSymbolLevel **DEBUGSYMBOLLEVEL**
  38. }
  39. versionCode **VERSIONCODE**
  40. versionName '**VERSIONNAME**'
  41. consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
  42. **DEFAULT_CONFIG_SETUP**
  43. }
  44. lint {
  45. abortOnError false
  46. }
  47. androidResources {
  48. noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
  49. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
  50. }**PACKAGING**
  51. }
  52. **IL_CPP_BUILD_SETUP**
  53. **SOURCE_BUILD_SETUP**
  54. **EXTERNAL_SOURCES**