gradle.properties 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Project-wide Gradle settings.
  2. # IDE (e.g. Android Studio) users:
  3. # Gradle settings configured through the IDE *will override*
  4. # any settings specified in this file.
  5. # For more details on how to configure your build environment visit
  6. # http://www.gradle.org/docs/current/userguide/build_environment.html
  7. # Specifies the JVM arguments used for the daemon process.
  8. # The setting is particularly useful for tweaking memory settings.
  9. # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
  10. # org.gradle.jvmargs=-Xmx5120m -XX:MaxMetaspaceSize=512m
  11. org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
  12. # When configured, Gradle will run in incubating parallel mode.
  13. # This option should only be used with decoupled projects. More details, visit
  14. # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
  15. # org.gradle.parallel=true
  16. # AndroidX package structure to make it clearer which packages are bundled with the
  17. # Android operating system, and which are packaged with your app's APK
  18. # https://developer.android.com/topic/libraries/support-library/androidx-rn
  19. android.useAndroidX=true
  20. android.enableJetifier=false
  21. # 强制 AAB 打包工具在处理原生库时使用 16KB 对齐逻辑
  22. android.useLegacyPackaging=false
  23. android.bundle.enableUncompressedNativeLibs=true
  24. android.bundle.enableResourceOptimizations=false
  25. # Use this property to specify which architecture you want to build.
  26. # You can also override it from the CLI using
  27. # ./gradlew <task> -PreactNativeArchitectures=x86_64
  28. # reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
  29. reactNativeArchitectures=arm64-v8a
  30. reactNative.enable16KPageSize=true
  31. # Use this property to enable support to the new architecture.
  32. # This will allow you to use TurboModules and the Fabric render in
  33. # your application. You should enable this flag either if you want
  34. # to write custom TurboModules/Fabric components OR use libraries that
  35. # are providing them.
  36. newArchEnabled=true
  37. # Use this property to enable or disable the Hermes JS engine.
  38. # If set to false, you will be using JSC instead.
  39. hermesEnabled=true
  40. # VisionCamera settings
  41. VisionCamera_enableCodeScanner=true