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

Function readMobileBundleID

internal/cli/quickstart_detect.go:512–521  ·  view source on GitHub ↗

readMobileBundleID reads the application/bundle ID for Flutter and React Native projects. Checks android/app/build.gradle first, then falls back to iOS project files.

(dir string)

Source from the content-addressed store, hash-verified

510// readMobileBundleID reads the application/bundle ID for Flutter and React Native projects.
511// Checks android/app/build.gradle first, then falls back to iOS project files.
512func readMobileBundleID(dir string) string {
513 if data, err := os.ReadFile(filepath.Join(dir, "android", "app", "build.gradle")); err == nil {
514 if id := extractGradleApplicationID(string(data)); id != "" {
515 return id
516 }
517 }
518 // IOS fallback: try project.pbxproj first (the canonical source for the bundle ID),
519 // then Info.plist (only when CFBundleIdentifier is not a build variable reference).
520 return readIOSBundleID(dir)
521}
522
523// readIOSBundleID reads the bundle ID from iOS project files (pbxproj then Info.plist).
524func readIOSBundleID(dir string) string {

Callers 3

TestReadMobileBundleIDFunction · 0.85
resolveNativeBundleIDFunction · 0.85
DetectProjectFunction · 0.85

Calls 2

readIOSBundleIDFunction · 0.85

Tested by 1

TestReadMobileBundleIDFunction · 0.68