説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

build.gradle 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. apply plugin: 'com.android.library'
  2. apply from: '../shared/keepUnitySymbols.gradle'
  3. dependencies {
  4. implementation fileTree(dir: 'libs', include: ['*.jar'])
  5. implementation(name: 'NativeGallery', ext:'aar')
  6. implementation(name: 'install-debug', ext:'aar')
  7. implementation 'androidx.appcompat:appcompat:1.6.1'
  8. implementation 'androidx.core:core:1.9.0'
  9. implementation 'androidx.games:games-activity:3.0.3'
  10. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  11. implementation 'androidx.games:games-frame-pacing:1.10.0'
  12. }
  13. android {
  14. namespace "com.unity3d.player"
  15. ndkPath "D:/Unity/6000.0.9f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK"
  16. ndkVersion "23.1.7779620"
  17. compileSdk 34
  18. buildToolsVersion = "34.0.0"
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_17
  21. targetCompatibility JavaVersion.VERSION_17
  22. }
  23. defaultConfig {
  24. minSdk 23
  25. targetSdk 34
  26. ndk {
  27. abiFilters 'armeabi-v7a', 'arm64-v8a'
  28. debugSymbolLevel 'none'
  29. }
  30. versionCode 28
  31. versionName '1.0.9'
  32. consumerProguardFiles 'proguard-unity.txt'
  33. externalNativeBuild {
  34. cmake {
  35. arguments "-DANDROID_STL=c++_shared"
  36. }
  37. }
  38. }
  39. lint {
  40. abortOnError false
  41. }
  42. androidResources {
  43. noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ')
  44. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
  45. }
  46. packaging {
  47. jniLibs {
  48. useLegacyPackaging true
  49. }
  50. }
  51. }
  52. android.externalNativeBuild {
  53. cmake {
  54. version "3.22.1"
  55. // Workaround for CMake long path issue on Windows, place CMake intermediate files next to Unity project
  56. buildStagingDirectory "${unityProjectPath}/.utmp"
  57. path "src/main/cpp/CMakeLists.txt"
  58. }
  59. }
  60. android.buildFeatures {
  61. prefab true
  62. }