Skip to content

Commit

Permalink
Merge pull request #12953 from woocommerce/fix-leak-canary-optionality
Browse files Browse the repository at this point in the history
Read enableLeakCanary from developer gradle properties
  • Loading branch information
wzieba authored Nov 20, 2024
2 parents 3c503aa + 19797bd commit 5b945a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions WooCommerce/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,7 @@ static def loadPropertiesFromFile(inputFile) {
}

def isLeakCanaryEnabled() {
return project.properties.getOrDefault('enableLeakCanary', 'true') == 'true'
return developerProperties.get("enable_leak_canary") ?: true
}



apply from: '../config/gradle/build_optimization.gradle'
1 change: 1 addition & 0 deletions developer.properties-example
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
wc.in_app_update_type = 0
wc.iap_testing_sandbox_url=
wc.jitm_testing_json_file_name=
enable_leak_canary=true

0 comments on commit 5b945a1

Please sign in to comment.