extractGradleApplicationID extracts the applicationId value from build.gradle content.
(content string)
| 596 | |
| 597 | // extractGradleApplicationID extracts the applicationId value from build.gradle content. |
| 598 | func 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). |
| 607 | var capacitorTSAppIDRegex = regexp.MustCompile(`appId\s*:\s*(?:'([^']*)'|"([^"]*)")`) |
no outgoing calls