MCPcopy Create free account
hub / github.com/auth0/auth0-cli / readAndroidApplicationID

Function readAndroidApplicationID

internal/cli/quickstart_detect.go:684–696  ·  view source on GitHub ↗

readAndroidApplicationID reads the applicationId from app/build.gradle or app/build.gradle.kts.

(dir string)

Source from the content-addressed store, hash-verified

682
683// readAndroidApplicationID reads the applicationId from app/build.gradle or app/build.gradle.kts.
684func readAndroidApplicationID(dir string) string {
685 for _, name := range []string{
686 filepath.Join("app", "build.gradle"),
687 filepath.Join("app", "build.gradle.kts"),
688 } {
689 if data, err := os.ReadFile(filepath.Join(dir, name)); err == nil {
690 if id := extractGradleApplicationID(string(data)); id != "" {
691 return id
692 }
693 }
694 }
695 return ""
696}
697
698// detectionFriendlyAppType returns a concise label for the detection summary display.
699func detectionFriendlyAppType(qsType string) string {

Callers 1

DetectProjectFunction · 0.85

Calls 1

Tested by

no test coverage detected