setupCodeConfig method
void
setupCodeConfig({
- required Architecture? targetArchitecture,
- required LinkModePreference linkModePreference,
- CCompilerConfig? cCompilerConfig,
- int? targetIOSVersion,
- int? targetMacOSVersion,
- int? targetAndroidNdkApi,
- 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();
}
}