mainTemplate.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apply plugin: 'com.android.library'
  2. **APPLY_PLUGINS**
  3. dependencies {
  4. implementation fileTree(dir: 'libs', include: ['*.jar'])
  5. **DEPS**}
  6. android {
  7. namespace "com.unity3d.player"
  8. ndkPath "**NDKPATH**"
  9. compileSdkVersion **APIVERSION**
  10. buildToolsVersion '**BUILDTOOLS**'
  11. compileOptions {
  12. sourceCompatibility JavaVersion.VERSION_11
  13. targetCompatibility JavaVersion.VERSION_11
  14. }
  15. defaultConfig {
  16. minSdkVersion **MINSDKVERSION**
  17. targetSdkVersion **TARGETSDKVERSION**
  18. ndk {
  19. abiFilters **ABIFILTERS**
  20. }
  21. versionCode **VERSIONCODE**
  22. versionName '**VERSIONNAME**'
  23. consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
  24. }
  25. lintOptions {
  26. abortOnError false
  27. }
  28. aaptOptions {
  29. noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
  30. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
  31. }**PACKAGING_OPTIONS**
  32. }
  33. **IL_CPP_BUILD_SETUP**
  34. **SOURCE_BUILD_SETUP**
  35. **EXTERNAL_SOURCES**