(config: Config)
| 123 | } |
| 124 | |
| 125 | export function getMajoriOSVersion(config: Config): string { |
| 126 | const pbx = readFileSync(join(config.ios.nativeXcodeProjDirAbs, 'project.pbxproj'), 'utf-8'); |
| 127 | const searchString = 'IPHONEOS_DEPLOYMENT_TARGET = '; |
| 128 | const iosVersion = pbx.substring( |
| 129 | pbx.indexOf(searchString) + searchString.length, |
| 130 | pbx.indexOf(searchString) + searchString.length + 2, |
| 131 | ); |
| 132 | return iosVersion; |
| 133 | } |
no outgoing calls
no test coverage detected