setupCodeConfig method

void setupCodeConfig({
  1. required Architecture? targetArchitecture,
  2. required LinkModePreference linkModePreference,
  3. CCompilerConfig? cCompilerConfig,
  4. int? targetIOSVersion,
  5. int? targetMacOSVersion,
  6. int? targetAndroidNdkApi,
  7. IOSSdk? targetIOSSdk,
})

Implementation

void setupCodeConfig({
  required Architecture? targetArchitecture,
  required LinkModePreference linkModePreference,
  CCompilerConfig? cCompilerConfig,
  int? targetIOSVersion,
  int? targetMacOSVersion,
  int? targetAndroidNdkApi,
  IOSSdk? targetIOSSdk,
}) {
  if (targetArchitecture != null) {
    json[_targetArchitectureKey] = targetArchitecture.toString();
  }
  json[_linkModePreferenceKey] = linkModePreference.toString();
  if (cCompilerConfig != null) {
    json[_compilerKey] = cCompilerConfig.toJson();
  }

  if (targetIOSVersion != null) {
    json[_targetIOSVersionKey] = targetIOSVersion;
  }
  if (targetMacOSVersion != null) {
    json[_targetMacOSVersionKey] = targetMacOSVersion;
  }
  if (targetAndroidNdkApi != null) {
    json[_targetAndroidNdkApiKey] = targetAndroidNdkApi;
  }
  if (targetIOSSdk != null) {
    json[_targetIOSSdkKey] = targetIOSSdk.toString();
  }
}