launcherTemplate.gradle 2.3 KB

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