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

Function extractGradleApplicationID

internal/cli/quickstart_detect.go:598–604  ·  view source on GitHub ↗

extractGradleApplicationID extracts the applicationId value from build.gradle content.

(content string)

Source from the content-addressed store, hash-verified

596
597// extractGradleApplicationID extracts the applicationId value from build.gradle content.
598func extractGradleApplicationID(content string) string {
599 matches := gradleAppIDRegex.FindStringSubmatch(content)
600 if len(matches) < 2 {
601 return ""
602 }
603 return matches[1]
604}
605
606// capacitorTSAppIDRegex extracts appId from capacitor.config.ts (single or double-quoted).
607var capacitorTSAppIDRegex = regexp.MustCompile(`appId\s*:\s*(?:'([^']*)'|"([^"]*)")`)

Calls

no outgoing calls