launcherTemplate.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
  2. apply plugin: 'com.android.application'
  3. dependencies {
  4. implementation project(':unityLibrary')
  5. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  6. }
  7. android {
  8. //compileSdkVersion **APIVERSION**
  9. //buildToolsVersion '**BUILDTOOLS**'
  10. compileSdkVersion 30
  11. buildToolsVersion '30.0.2'
  12. compileOptions {
  13. sourceCompatibility JavaVersion.VERSION_1_8
  14. targetCompatibility JavaVersion.VERSION_1_8
  15. }
  16. defaultConfig {
  17. minSdkVersion **MINSDKVERSION**
  18. targetSdkVersion **TARGETSDKVERSION**
  19. applicationId '**APPLICATIONID**'
  20. ndk {
  21. abiFilters **ABIFILTERS**
  22. }
  23. versionCode **VERSIONCODE**
  24. versionName '**VERSIONNAME**'
  25. }
  26. aaptOptions {
  27. noCompress = ['.ress', '.resource', '.obb', ''] + unityStreamingAssets.tokenize(', ')
  28. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  29. }**SIGN**
  30. lintOptions {
  31. abortOnError false
  32. }
  33. packagingOptions {
  34. doNotStrip '*/arm64-v8a/*.so'
  35. pickFirst 'lib/arm64-v8a/libomp.so'
  36. pickFirst 'lib/arm64-v8a/libjpeg-turbo1500.so'
  37. pickFirst 'lib/arm64-v8a/libturbojpeg.so'
  38. pickFirst 'lib/armeabi-v7a/libturbojpeg.so'
  39. pickFirst 'lib/arm64-v8a/libusb100.so'
  40. pickFirst 'lib/arm64-v8a/libusb.so'
  41. //若手机版本有使用到摄像头等数据,则需要考虑以哪个uvc 库为准!!!
  42. pickFirst 'lib/arm64-v8a/libuvc.so'
  43. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  44. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  45. pickFirst 'lib/arm64-v8a/libipsea.so'
  46. }
  47. buildTypes {
  48. debug {
  49. minifyEnabled **MINIFY_DEBUG**
  50. proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
  51. jniDebuggable true
  52. }
  53. release {
  54. minifyEnabled **MINIFY_RELEASE**
  55. proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
  56. }
  57. }**PACKAGING_OPTIONS****PLAY_ASSET_PACKS****SPLITS**
  58. **BUILT_APK_LOCATION**
  59. bundle {
  60. language {
  61. enableSplit = false
  62. }
  63. density {
  64. enableSplit = false
  65. }
  66. abi {
  67. enableSplit = true
  68. }
  69. }
  70. }**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**