diff --git a/RNScreens.podspec b/RNScreens.podspec index 4960724bbc..2f2f083d4a 100644 --- a/RNScreens.podspec +++ b/RNScreens.podspec @@ -2,7 +2,8 @@ require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) -gamma_project_enabled = ENV['RNS_GAMMA_ENABLED'] == '1' +# Gamma is opt-out: enabled unless RNS_GAMMA_ENABLED is explicitly '0'. +gamma_project_enabled = !(ENV['RNS_GAMMA_ENABLED'] == '0') new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' debug_logging_enabled = ENV['RNS_DEBUG_LOGGING'] == '1' diff --git a/android/build.gradle b/android/build.gradle index d3ede154b4..6905917356 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -34,8 +34,9 @@ def areDebugLogsEnabled() { return project.hasProperty("rnsDebugLogsEnabled") && project.rnsDebugLogsEnabled == "true" } +// Gamma is opt-out: enabled unless rnsGammaEnabled is explicitly "false". def isGammaEnabled() { - return project.hasProperty("rnsGammaEnabled") && project.rnsGammaEnabled == "true" + return !(project.hasProperty("rnsGammaEnabled") && project.rnsGammaEnabled == "false") } def resolveReactNativeDirectory() {