| /expo/packages/expo-modules-core/ios/Tests/ |
| H A D | RecordSpec.swift | 18 let dict = ["a": "b"] in spec() variable 19 let record = try TestRecord(from: dict, appContext: appContext) in spec() 21 expect(record.a).to(be(dict["a"])) in spec() 22 expect(record.toDictionary()["a"]).to(be(dict["a"])) in spec() 29 let dict = ["key": "b"] in spec() variable 30 let record = try TestRecord(from: dict, appContext: appContext) in spec() 32 expect(record.a).to(be(dict["key"])) in spec() 33 expect(record.toDictionary()["key"]).to(be(dict["key"])) in spec() 50 let dict = ["a": "try with String instead of Int"] in spec() variable 52 expect { try TestRecord(from: dict, appContext: appContext) }.to(throwError { error in in spec()
|
| H A D | FunctionSpec.swift | 89 let dict = [ in spec() variable 101 .call(function: functionName, args: [dict]) { result in in spec() 106 expect(value).to(be(dict["property"])) in spec() 119 .call(function: functionName, args: [dict]) { result in in spec() 123 expect(value).to(be(dict["propertyWithCustomKey"])) in spec() 131 .call(by: nil, withArguments: [dict], appContext: appContext) as? TestRecord in spec() 138 expect(result["property"] as? String).to(equal(dict["property"])) in spec() 139 … expect(result["propertyWithCustomKey"] as? String).to(equal(dict["propertyWithCustomKey"])) in spec() 149 .call(function: functionName, args: [dict]) { result in in spec() 157 expect(valueAsDict["property"] as? String).to(equal(dict["property"])) in spec() [all …]
|
| H A D | ExpoModulesSpec.swift | 61 let dict = try runtime.eval("expo.modules.TestModule").asDict() in spec() variable 63 dict.forEach { (key: String, value: Any) in in spec() 64 expect(value) === dict[key]! in spec()
|
| /expo/ios/versioned/sdk49/ExpoModulesCore/ios/Tests/ |
| H A D | RecordSpec.swift | 18 let dict = ["a": "b"] in spec() variable 19 let record = try TestRecord(from: dict, appContext: appContext) in spec() 21 expect(record.a).to(be(dict["a"])) in spec() 22 expect(record.toDictionary()["a"]).to(be(dict["a"])) in spec() 29 let dict = ["key": "b"] in spec() variable 30 let record = try TestRecord(from: dict, appContext: appContext) in spec() 32 expect(record.a).to(be(dict["key"])) in spec() 33 expect(record.toDictionary()["key"]).to(be(dict["key"])) in spec() 50 let dict = ["a": "try with String instead of Int"] in spec() variable 52 expect { try TestRecord(from: dict, appContext: appContext) }.to(throwError { error in in spec()
|
| H A D | FunctionSpec.swift | 89 let dict = [ in spec() variable 101 .call(function: functionName, args: [dict]) { result in in spec() 106 expect(value).to(be(dict["property"])) in spec() 119 .call(function: functionName, args: [dict]) { result in in spec() 123 expect(value).to(be(dict["propertyWithCustomKey"])) in spec() 131 .call(by: nil, withArguments: [dict], appContext: appContext) as? TestRecord in spec() 138 expect(result["property"] as? String).to(equal(dict["property"])) in spec() 139 … expect(result["propertyWithCustomKey"] as? String).to(equal(dict["propertyWithCustomKey"])) in spec() 149 .call(function: functionName, args: [dict]) { result in in spec() 157 expect(valueAsDict["property"] as? String).to(equal(dict["property"])) in spec() [all …]
|
| H A D | ExpoModulesSpec.swift | 61 let dict = try runtime.eval("expo.modules.TestModule").asDict() in spec() variable 63 dict.forEach { (key: String, value: Any) in in spec() 64 expect(value) === dict[key]! in spec()
|
| /expo/packages/expo-dev-menu-interface/ios/MenuItems/ |
| H A D | DevMenuLink.swift | 22 var dict = super.serialize() in serialize() variable 23 dict["target"] = target in serialize() 24 dict["label"] = label() in serialize() 25 dict["glyphName"] = glyphName() in serialize() 26 return dict in serialize()
|
| H A D | DevMenuAction.swift | 67 var dict = super.serialize() in serialize() variable 68 dict["actionId"] = self.callable.id in serialize() 69 dict["keyCommand"] = self.callable.keyCommand == nil ? nil : [ in serialize() 74 dict["isAvailable"] = isAvailable() in serialize() 75 dict["isEnabled"] = isAvailable() in serialize() 76 dict["label"] = label() in serialize() 77 dict["detail"] = detail() in serialize() 78 dict["glyphName"] = glyphName() in serialize() 80 return dict in serialize()
|
| H A D | DevMenuScreen.swift | 32 var dict = super.serialize() in serialize() variable 33 dict["screenName"] = screenName in serialize() 34 dict["items"] = serializeItems() in serialize() 35 return dict in serialize()
|
| H A D | DevMenuSelectionList.swift | 76 var dict = super.serialize() in serialize() variable 77 dict["items"] = items.map { $0.serialize() } in serialize() 78 dict["dataSourceId"] = dataSourceId ?? NSNull() in serialize() 79 dict["actionId"] = self.callable.id in serialize() 80 return dict in serialize()
|
| H A D | DevMenuGroup.swift | 33 var dict = super.serialize() in serialize() variable 34 dict["items"] = serializeItems() in serialize() 35 return dict in serialize()
|
| /expo/packages/expo-modules-core/ios/Swift/Objects/ |
| H A D | ObjectDefinition.swift | 33 .reduce(into: [String: AnyFunction]()) { dict, function in 34 dict[function.name] = function 42 .reduce(into: [String: AnyPropertyComponent]()) { dict, property in 43 dict[property.name] = property 48 .reduce(into: [String: ClassComponent]()) { dict, klass in 49 dict[klass.name] = klass 57 return constants.reduce(into: [String: Any?]()) { dict, definition in in getConstants() 58 dict.merge(definition.body()) { $1 } in getConstants()
|
| /expo/ios/versioned/sdk47/ExpoModulesCore/ios/Swift/Objects/ |
| H A D | ObjectDefinition.swift | 33 .reduce(into: [String: AnyFunction]()) { dict, function in 34 dict[function.name] = function 42 .reduce(into: [String: PropertyComponent]()) { dict, property in 43 dict[property.name] = property 48 .reduce(into: [String: ClassComponent]()) { dict, klass in 49 dict[klass.name] = klass 57 return constants.reduce(into: [String: Any?]()) { dict, definition in in getConstants() 58 dict.merge(definition.body()) { $1 } in getConstants()
|
| /expo/ios/versioned/sdk49/ExpoModulesCore/ios/Swift/Objects/ |
| H A D | ObjectDefinition.swift | 33 .reduce(into: [String: AnyFunction]()) { dict, function in 34 dict[function.name] = function 42 .reduce(into: [String: AnyPropertyComponent]()) { dict, property in 43 dict[property.name] = property 48 .reduce(into: [String: ClassComponent]()) { dict, klass in 49 dict[klass.name] = klass 57 return constants.reduce(into: [String: Any?]()) { dict, definition in in getConstants() 58 dict.merge(definition.body()) { $1 } in getConstants()
|
| /expo/ios/versioned/sdk48/ExpoModulesCore/ios/Swift/Objects/ |
| H A D | ObjectDefinition.swift | 33 .reduce(into: [String: AnyFunction]()) { dict, function in 34 dict[function.name] = function 42 .reduce(into: [String: AnyPropertyComponent]()) { dict, property in 43 dict[property.name] = property 48 .reduce(into: [String: ClassComponent]()) { dict, klass in 49 dict[klass.name] = klass 57 return constants.reduce(into: [String: Any?]()) { dict, definition in in getConstants() 58 dict.merge(definition.body()) { $1 } in getConstants()
|
| /expo/ios/versioned/sdk47/ExpoModulesCore/ios/Swift/Records/ |
| H A D | Record.swift | 37 init(from dict: Dict) throws { in toDictionary() 40 let dictKeys = dict.keys in toDictionary() 48 try field.set(dict[key]) in toDictionary()
|
| /expo/ios/versioned/sdk48/ExpoModulesCore/ios/Swift/Records/ |
| H A D | Record.swift | 37 init(from dict: Dict) throws { in toDictionary() 40 let dictKeys = dict.keys in toDictionary() 48 try field.set(dict[key]) in toDictionary()
|
| /expo/packages/@expo/cli/src/utils/ |
| H A D | template.ts | 29 const dict = typeof lastValue === 'object' ? lastValue : {}; constant 32 const value = typeof key === 'number' && Number.isInteger(key) ? values[key] : dict[key];
|
| /expo/packages/expo-modules-core/ios/Swift/Records/ |
| H A D | Record.swift | 37 init(from dict: Dict, appContext: AppContext) throws { in toDictionary() 40 let dictKeys = dict.keys in toDictionary() 48 try field.set(dict[key], appContext: appContext) in toDictionary()
|
| /expo/ios/versioned/sdk49/ExpoModulesCore/ios/Swift/Records/ |
| H A D | Record.swift | 37 init(from dict: Dict, appContext: AppContext) throws { in toDictionary() 40 let dictKeys = dict.keys in toDictionary() 48 try field.set(dict[key], appContext: appContext) in toDictionary()
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/React/Base/ |
| H A D | ABI49_0_0RCTJSStackFrame.m | 106 + (instancetype)stackFrameWithDictionary:(NSDictionary *)dict 108 return [[self alloc] initWithMethodName:ABI49_0_0RCTNilIfNull(dict[@"methodName"]) 109 file:dict[@"file"] 110 lineNumber:[ABI49_0_0RCTNilIfNull(dict[@"lineNumber"]) integerValue] 111 column:[ABI49_0_0RCTNilIfNull(dict[@"column"]) integerValue] 112 collapse:[ABI49_0_0RCTNilIfNull(dict[@"collapse"]) boolValue]]; 130 for (NSDictionary *dict in dicts) { 131 ABI49_0_0RCTJSStackFrame *frame = [self stackFrameWithDictionary:dict];
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/React/Base/ |
| H A D | ABI48_0_0RCTJSStackFrame.m | 106 + (instancetype)stackFrameWithDictionary:(NSDictionary *)dict 108 return [[self alloc] initWithMethodName:ABI48_0_0RCTNilIfNull(dict[@"methodName"]) 109 file:dict[@"file"] 110 lineNumber:[ABI48_0_0RCTNilIfNull(dict[@"lineNumber"]) integerValue] 111 column:[ABI48_0_0RCTNilIfNull(dict[@"column"]) integerValue] 112 collapse:[ABI48_0_0RCTNilIfNull(dict[@"collapse"]) boolValue]]; 130 for (NSDictionary *dict in dicts) { 131 ABI48_0_0RCTJSStackFrame *frame = [self stackFrameWithDictionary:dict];
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/React/Base/ |
| H A D | ABI47_0_0RCTJSStackFrame.m | 106 + (instancetype)stackFrameWithDictionary:(NSDictionary *)dict 108 return [[self alloc] initWithMethodName:ABI47_0_0RCTNilIfNull(dict[@"methodName"]) 109 file:dict[@"file"] 110 lineNumber:[ABI47_0_0RCTNilIfNull(dict[@"lineNumber"]) integerValue] 111 column:[ABI47_0_0RCTNilIfNull(dict[@"column"]) integerValue] 112 collapse:[ABI47_0_0RCTNilIfNull(dict[@"collapse"]) boolValue]]; 130 for (NSDictionary *dict in dicts) { 131 ABI47_0_0RCTJSStackFrame *frame = [self stackFrameWithDictionary:dict];
|
| /expo/packages/expo-dev-launcher/ios/ |
| H A D | EXDevLauncherURLHelper.swift | 78 var dict: [String: String] = [:] in getQueryParamsForUrl() variable 81 dict[parameter.name] = parameter.value?.removingPercentEncoding ?? "" in getQueryParamsForUrl() 84 return dict in getQueryParamsForUrl()
|
| /expo/packages/expo-task-manager/ios/EXTaskManager/ |
| H A D | EXTaskService.m | 413 [dict setObject:appDict forKey:task.appId]; 414 [self _saveConfigWithDictionary:dict]; 423 NSMutableDictionary *appDict = [dict[appId] mutableCopy]; 431 [dict setObject:appDict forKey:appId]; 433 [dict removeObjectForKey:appId]; 435 [self _saveConfigWithDictionary:dict]; 443 if (dict[appId]) { 444 [dict removeObjectForKey:appId]; 445 [self _saveConfigWithDictionary:dict]; 580 dict[appId] = appDict; [all …]
|