Compare commits

...
Author SHA1 Message Date
Siddarth Kumar 75c68bcc60 list high level deps 2023-08-30 11:58:37 +05:30
Siddarth Kumar 8375eebe71 first attempt at listing dependencies 2023-08-30 10:46:01 +05:30
+28
View File
@@ -4,6 +4,8 @@ apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.grad
import com.android.build.OutputFile
import com.sun.org.apache.xalan.internal.xsltc.compiler.Copy
import groovy.json.JsonBuilder
import groovy.json.JsonSlurper
/**
* The react.gradle file registers a task for each build variant:
@@ -463,6 +465,32 @@ task hemroidBuild(type: Exec) {
executable execPath
}
// Add this task definition at the bottom of your build.gradle file
task printAllDependencies {
doLast {
println "Listing all dependencies for project..."
// Iterate through all configurations
configurations.all { config ->
int dependencyCount = 0
// Count the dependencies for this configuration
config.allDependencies.each { dependency ->
dependencyCount++
}
// Print the configuration name and dependency count
println "Configuration: ${config.name} (Total Dependencies: ${dependencyCount})"
// Iterate through all dependencies in the current configuration
config.allDependencies.each { dependency ->
println " - ${dependency.group}:${dependency.name}:${dependency.version}"
}
}
}
}
preBuild.dependsOn hemroidBuild
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)