mainTemplate.gradle 1.2 KB

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