build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. apply plugin: 'com.android.application'
  2. dependencies {
  3. implementation project(':unityLibrary')
  4. }
  5. android {
  6. compileSdkVersion 30
  7. buildToolsVersion '30.0.2'
  8. compileOptions {
  9. sourceCompatibility JavaVersion.VERSION_1_8
  10. targetCompatibility JavaVersion.VERSION_1_8
  11. }
  12. defaultConfig {
  13. minSdkVersion 26
  14. targetSdkVersion 30
  15. applicationId 'com.XR.HotLangChao'
  16. ndk {
  17. abiFilters 'arm64-v8a'
  18. }
  19. versionCode 1
  20. versionName '1.0.0'
  21. }
  22. aaptOptions {
  23. noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ')
  24. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  25. }
  26. lintOptions {
  27. abortOnError false
  28. }
  29. buildTypes {
  30. debug {
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android.txt')
  33. signingConfig signingConfigs.debug
  34. jniDebuggable true
  35. }
  36. release {
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android.txt')
  39. signingConfig signingConfigs.debug
  40. }
  41. }
  42. packagingOptions {
  43. doNotStrip '*/arm64-v8a/*.so'
  44. }
  45. bundle {
  46. language {
  47. enableSplit = false
  48. }
  49. density {
  50. enableSplit = false
  51. }
  52. abi {
  53. enableSplit = true
  54. }
  55. }
  56. }