resolveNativeBundleID determines the bundle/package ID for native frameworks.
(inputs SetupInputs)
| 1125 | |
| 1126 | // resolveNativeBundleID determines the bundle/package ID for native frameworks. |
| 1127 | func resolveNativeBundleID(inputs SetupInputs) string { |
| 1128 | if inputs.BundleID != "" { |
| 1129 | return inputs.BundleID |
| 1130 | } |
| 1131 | |
| 1132 | cwd, err := os.Getwd() |
| 1133 | if err != nil { |
| 1134 | return "" |
| 1135 | } |
| 1136 | |
| 1137 | switch inputs.Framework { |
| 1138 | case "flutter", "react-native": |
| 1139 | return readMobileBundleID(cwd) |
| 1140 | case "maui", "dotnet-mobile": |
| 1141 | if content, ok := findCsprojContent(cwd); ok { |
| 1142 | return readDotnetMobileBundleID(content) |
| 1143 | } |
| 1144 | case "ionic-angular", "ionic-react", "ionic-vue": |
| 1145 | return readCapacitorAppID(cwd) |
| 1146 | } |
| 1147 | return "" |
| 1148 | } |
| 1149 | |
| 1150 | // printNativeGuidance prints post-setup callback URL guidance for native frameworks. |
| 1151 | func printNativeGuidance(cli *cli, framework, expoScheme, bundleID string) { |
no test coverage detected