expo-modules-core 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/core/interfaces/Package.java +1 -1
  4. package/ios/EXDefines.h +22 -8
  5. package/ios/ExpoModulesCore.podspec +1 -0
  6. package/ios/ExpoModulesCore.xcframework/Info.plist +40 -0
  7. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/ExpoModulesCore +0 -0
  8. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/Info.plist +0 -0
  9. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  10. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  11. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/arm64-apple-ios.swiftinterface +278 -0
  13. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/arm64.swiftdoc +0 -0
  14. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/arm64.swiftinterface +278 -0
  15. package/ios/ExpoModulesCore.xcframework/ios-arm64/ExpoModulesCore.framework/Modules/module.modulemap +23 -0
  16. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/ExpoModulesCore +0 -0
  17. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Info.plist +0 -0
  18. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  19. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  20. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  21. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/Project/x86_64.swiftsourceinfo +0 -0
  22. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +278 -0
  24. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/arm64.swiftdoc +0 -0
  25. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/arm64.swiftinterface +278 -0
  26. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  27. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +278 -0
  28. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/x86_64.swiftdoc +0 -0
  29. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/ExpoModulesCore.swiftmodule/x86_64.swiftinterface +278 -0
  30. package/ios/ExpoModulesCore.xcframework/ios-arm64_x86_64-simulator/ExpoModulesCore.framework/Modules/module.modulemap +23 -0
  31. package/ios/ModuleRegistryAdapter/EXModuleRegistryAdapter.m +7 -0
  32. package/ios/NativeModulesProxy/EXNativeModulesProxy.m +11 -5
  33. package/ios/Services/EXReactNativeAdapter.m +1 -1
  34. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.4.0 — 2021-09-28
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fix imports that affect versioned code inside of Expo Go. ([#14436](https://github.com/expo/expo/pull/14436) by [@cruzach](https://github.com/cruzach))
18
+ - Fixed event emitter being registered after module registry initialization. ([#14502](https://github.com/expo/expo/pull/14502) by [@tsapeta](https://github.com/tsapeta))
19
+ - Fix building errors from use_frameworks! in Podfile. ([#14523](https://github.com/expo/expo/pull/14523) by [@kudo](https://github.com/kudo))
20
+
13
21
  ## 0.3.2 — 2021-09-15
14
22
 
15
23
  ### 🛠 Breaking changes
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.3.2'
6
+ version = '0.4.0'
7
7
 
8
8
  buildscript {
9
9
  // Simple helper that allows the root project to override versions declared by this library.
@@ -57,7 +57,7 @@ android {
57
57
  minSdkVersion safeExtGet("minSdkVersion", 21)
58
58
  targetSdkVersion safeExtGet("targetSdkVersion", 30)
59
59
  versionCode 1
60
- versionName "0.3.2"
60
+ versionName "0.4.0"
61
61
  }
62
62
  lintOptions {
63
63
  abortOnError false
@@ -28,7 +28,7 @@ public interface Package {
28
28
  return Collections.emptyList();
29
29
  }
30
30
 
31
- default List<? extends SingletonModule> createSingletonModules(Context context) {
31
+ default List<? extends expo.modules.core.interfaces.SingletonModule> createSingletonModules(Context context) {
32
32
  return Collections.emptyList();
33
33
  }
34
34
 
package/ios/EXDefines.h CHANGED
@@ -1,5 +1,17 @@
1
1
  // Copyright © 2018 650 Industries. All rights reserved.
2
2
 
3
+ #if defined(__cplusplus)
4
+ #define EX_EXTERN extern "C" __attribute__((visibility("default")))
5
+ #define EX_EXTERN_C_BEGIN extern "C" {
6
+ #define EX_EXTERN_C_END }
7
+ #else
8
+ #define EX_EXTERN extern __attribute__((visibility("default")))
9
+ #define EX_EXTERN_C_BEGIN
10
+ #define EX_EXTERN_C_END
11
+ #endif
12
+
13
+ EX_EXTERN_C_BEGIN
14
+
3
15
  #define EX_EXPORTED_METHODS_PREFIX __ex_export__
4
16
  #define EX_PROPSETTERS_PREFIX __ex_set__
5
17
 
@@ -20,7 +32,7 @@
20
32
  - (void)EX_CONCAT(EX_PROPSETTERS_PREFIX, external_name):(type)value view:(viewClass *)view
21
33
 
22
34
  #define _EX_DEFINE_CUSTOM_LOAD(_custom_load_code) \
23
- extern void EXRegisterModule(Class); \
35
+ EX_EXTERN void EXRegisterModule(Class); \
24
36
  + (void)load { \
25
37
  EXRegisterModule(self); \
26
38
  _custom_load_code \
@@ -37,7 +49,7 @@
37
49
  _EX_DEFINE_CUSTOM_LOAD(_custom_load_code)
38
50
 
39
51
  #define EX_REGISTER_SINGLETON_MODULE_WITH_CUSTOM_LOAD(singleton_name, _custom_load_code) \
40
- extern void EXRegisterSingletonModule(Class); \
52
+ EX_EXTERN void EXRegisterSingletonModule(Class); \
41
53
  + (const NSString *)name { \
42
54
  return @#singleton_name; \
43
55
  } \
@@ -86,9 +98,11 @@ typedef void (^EXPromiseRejectBlock)(NSString *code, NSString *message, NSError
86
98
  #pragma mark - Externs
87
99
 
88
100
  // These should be defined by the concrete platform adapter
89
- extern void EXLogInfo(NSString *format, ...);
90
- extern void EXLogWarn(NSString *format, ...);
91
- extern void EXLogError(NSString *format, ...);
92
- extern void EXFatal(NSError *);
93
- extern NSError * EXErrorWithMessage(NSString *);
94
- extern UIApplication *EXSharedApplication(void);
101
+ EX_EXTERN void EXLogInfo(NSString *format, ...);
102
+ EX_EXTERN void EXLogWarn(NSString *format, ...);
103
+ EX_EXTERN void EXLogError(NSString *format, ...);
104
+ EX_EXTERN void EXFatal(NSError *);
105
+ EX_EXTERN NSError * EXErrorWithMessage(NSString *);
106
+ EX_EXTERN UIApplication *EXSharedApplication(void);
107
+
108
+ EX_EXTERN_C_END
@@ -13,6 +13,7 @@ Pod::Spec.new do |s|
13
13
  s.platform = :ios, '12.0'
14
14
  s.swift_version = '5.4'
15
15
  s.source = { git: 'https://github.com/expo/expo.git' }
16
+ s.static_framework = true
16
17
  s.header_dir = 'ExpoModulesCore'
17
18
 
18
19
  # Swift/Objective-C compatibility
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>LibraryIdentifier</key>
9
+ <string>ios-arm64_x86_64-simulator</string>
10
+ <key>LibraryPath</key>
11
+ <string>ExpoModulesCore.framework</string>
12
+ <key>SupportedArchitectures</key>
13
+ <array>
14
+ <string>arm64</string>
15
+ <string>x86_64</string>
16
+ </array>
17
+ <key>SupportedPlatform</key>
18
+ <string>ios</string>
19
+ <key>SupportedPlatformVariant</key>
20
+ <string>simulator</string>
21
+ </dict>
22
+ <dict>
23
+ <key>LibraryIdentifier</key>
24
+ <string>ios-arm64</string>
25
+ <key>LibraryPath</key>
26
+ <string>ExpoModulesCore.framework</string>
27
+ <key>SupportedArchitectures</key>
28
+ <array>
29
+ <string>arm64</string>
30
+ </array>
31
+ <key>SupportedPlatform</key>
32
+ <string>ios</string>
33
+ </dict>
34
+ </array>
35
+ <key>CFBundlePackageType</key>
36
+ <string>XFWK</string>
37
+ <key>XCFrameworkFormatVersion</key>
38
+ <string>1.0</string>
39
+ </dict>
40
+ </plist>
@@ -0,0 +1,278 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 5.5 (swiftlang-1300.0.29.102 clang-1300.0.28.1)
3
+ // swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ExpoModulesCore
4
+ import Dispatch
5
+ @_exported import ExpoModulesCore
6
+ import Foundation
7
+ import ObjectiveC
8
+ import Swift
9
+ import UIKit
10
+ import _Concurrency
11
+ public protocol AnyField {
12
+ func get() -> Any
13
+ }
14
+ public protocol AnyMethod : ExpoModulesCore.AnyDefinition {
15
+ var name: Swift.String { get }
16
+ var argumentsCount: Swift.Int { get }
17
+ var queue: Dispatch.DispatchQueue? { get }
18
+ func call(args: [Any?], promise: ExpoModulesCore.Promise)
19
+ func runOnQueue(_ queue: Dispatch.DispatchQueue?) -> Self
20
+ }
21
+ public protocol AnyMethodArgument {
22
+ }
23
+ extension Swift.Bool : ExpoModulesCore.AnyMethodArgument {
24
+ }
25
+ extension Swift.Int : ExpoModulesCore.AnyMethodArgument {
26
+ }
27
+ extension Swift.Double : ExpoModulesCore.AnyMethodArgument {
28
+ }
29
+ extension Swift.String : ExpoModulesCore.AnyMethodArgument {
30
+ }
31
+ extension Swift.Array : ExpoModulesCore.AnyMethodArgument {
32
+ }
33
+ extension Swift.Dictionary : ExpoModulesCore.AnyMethodArgument {
34
+ }
35
+ public protocol AnyModule : AnyObject {
36
+ init(appContext: ExpoModulesCore.AppContext)
37
+ @ExpoModulesCore.ModuleDefinitionBuilder func definition() -> ExpoModulesCore.ModuleDefinition
38
+ }
39
+ public protocol AnyViewProp : ExpoModulesCore.AnyDefinition {
40
+ var name: Swift.String { get }
41
+ func set(value: Any?, onView: UIKit.UIView)
42
+ }
43
+ public class AppContext {
44
+ public var moduleRegistry: ExpoModulesCore.ModuleRegistry {
45
+ get
46
+ }
47
+ public var legacyModuleRegistry: ExpoModulesCore.EXModuleRegistry? {
48
+ get
49
+ }
50
+ public init()
51
+ convenience public init(withModulesProvider provider: ExpoModulesCore.ModulesProviderProtocol, legacyModuleRegistry: ExpoModulesCore.EXModuleRegistry?)
52
+ public func legacyModule<ModuleProtocol>(implementing moduleProtocol: ObjectiveC.`Protocol`) -> ModuleProtocol?
53
+ public var constants: ExpoModulesCore.EXConstantsInterface? {
54
+ get
55
+ }
56
+ public var fileSystem: ExpoModulesCore.EXFileSystemInterface? {
57
+ get
58
+ }
59
+ public var permissions: ExpoModulesCore.EXPermissionsInterface? {
60
+ get
61
+ }
62
+ public var imageLoader: ExpoModulesCore.EXImageLoaderInterface? {
63
+ get
64
+ }
65
+ public var utilities: ExpoModulesCore.EXUtilitiesInterface? {
66
+ get
67
+ }
68
+ @objc deinit
69
+ }
70
+ public protocol CodedError : Swift.Error {
71
+ var code: Swift.String { get }
72
+ var description: Swift.String { get }
73
+ }
74
+ extension ExpoModulesCore.CodedError {
75
+ public var code: Swift.String {
76
+ get
77
+ }
78
+ public var description: Swift.String {
79
+ get
80
+ }
81
+ }
82
+ public struct SimpleCodedError : ExpoModulesCore.CodedError {
83
+ public var code: Swift.String
84
+ public var description: Swift.String
85
+ }
86
+ public struct UnexpectedError : ExpoModulesCore.CodedError {
87
+ public let description: Swift.String
88
+ }
89
+ @_hasMissingDesignatedInitializers public class ConcreteMethod<Args, ReturnType> : ExpoModulesCore.AnyMethod {
90
+ public typealias ClosureType = (Args) -> ReturnType
91
+ final public let name: Swift.String
92
+ public var takesPromise: Swift.Bool {
93
+ get
94
+ }
95
+ public var argumentsCount: Swift.Int {
96
+ get
97
+ }
98
+ public var queue: Dispatch.DispatchQueue?
99
+ public func call(args: [Any?], promise: ExpoModulesCore.Promise)
100
+ public func runOnQueue(_ queue: Dispatch.DispatchQueue?) -> Self
101
+ @objc deinit
102
+ }
103
+ @_hasMissingDesignatedInitializers public class ConcreteViewProp<ViewType, PropType> : ExpoModulesCore.AnyViewProp where ViewType : UIKit.UIView {
104
+ public typealias SetterType = (ViewType, PropType) -> Swift.Void
105
+ final public let name: Swift.String
106
+ public func set(value: Any?, onView view: UIKit.UIView)
107
+ @objc deinit
108
+ }
109
+ @propertyWrapper public class Field<Type> {
110
+ public var wrappedValue: Type
111
+ public init(wrappedValue: Type, _ options: ExpoModulesCore.FieldOption...)
112
+ public init(wrappedValue: Type, _ options: [ExpoModulesCore.FieldOption])
113
+ public init(wrappedValue: Type = nil) where Type : Swift.ExpressibleByNilLiteral
114
+ public init(wrappedValue: Type = nil, _ options: ExpoModulesCore.FieldOption...) where Type : Swift.ExpressibleByNilLiteral
115
+ public func get() -> Any
116
+ @objc deinit
117
+ }
118
+ extension ExpoModulesCore.Field where Type == Swift.Int {
119
+ convenience public init(wrappedValue: Type = 0)
120
+ convenience public init(wrappedValue: Type = 0, _ options: ExpoModulesCore.FieldOption...)
121
+ }
122
+ extension ExpoModulesCore.Field where Type == Swift.Double {
123
+ convenience public init(wrappedValue: Type = 0.0)
124
+ convenience public init(wrappedValue: Type = 0.0, _ options: ExpoModulesCore.FieldOption...)
125
+ }
126
+ extension ExpoModulesCore.Field where Type == Swift.Bool {
127
+ convenience public init(wrappedValue: Type = false)
128
+ convenience public init(wrappedValue: Type = false, _ options: ExpoModulesCore.FieldOption...)
129
+ }
130
+ extension ExpoModulesCore.Field where Type == Swift.String {
131
+ convenience public init(wrappedValue: Type = "")
132
+ convenience public init(wrappedValue: Type = "", _ options: ExpoModulesCore.FieldOption...)
133
+ }
134
+ extension ExpoModulesCore.Field where Type : Swift.ExpressibleByArrayLiteral {
135
+ convenience public init(wrappedValue: Type = [])
136
+ convenience public init(wrappedValue: Type = [], _ options: ExpoModulesCore.FieldOption...)
137
+ }
138
+ extension ExpoModulesCore.Field where Type : Swift.ExpressibleByDictionaryLiteral {
139
+ convenience public init(wrappedValue: Type = [:])
140
+ convenience public init(wrappedValue: Type = [:], _ options: ExpoModulesCore.FieldOption...)
141
+ }
142
+ extension ExpoModulesCore.Field where Type : ExpoModulesCore.Record {
143
+ convenience public init(wrappedValue: Type = Type.init())
144
+ convenience public init(wrappedValue: Type = Type.init(), _ options: ExpoModulesCore.FieldOption...)
145
+ }
146
+ public struct FieldOption : Swift.Equatable, Swift.Hashable, Swift.ExpressibleByIntegerLiteral, Swift.ExpressibleByStringLiteral {
147
+ public let rawValue: Swift.Int
148
+ public var key: Swift.String?
149
+ public init(_ rawValue: Swift.Int)
150
+ public static func == (lhs: ExpoModulesCore.FieldOption, rhs: ExpoModulesCore.FieldOption) -> Swift.Bool
151
+ public func hash(into hasher: inout Swift.Hasher)
152
+ public init(integerLiteral value: Swift.Int)
153
+ public init(stringLiteral value: Swift.String)
154
+ public typealias ExtendedGraphemeClusterLiteralType = Swift.String
155
+ public typealias IntegerLiteralType = Swift.Int
156
+ public typealias StringLiteralType = Swift.String
157
+ public typealias UnicodeScalarLiteralType = Swift.String
158
+ public var hashValue: Swift.Int {
159
+ get
160
+ }
161
+ }
162
+ extension ExpoModulesCore.FieldOption {
163
+ public static func keyed(_ key: Swift.String) -> ExpoModulesCore.FieldOption
164
+ public static let required: ExpoModulesCore.FieldOption
165
+ }
166
+ open class BaseModule {
167
+ weak public var appContext: ExpoModulesCore.AppContext? {
168
+ get
169
+ }
170
+ required public init(appContext: ExpoModulesCore.AppContext)
171
+ @objc deinit
172
+ }
173
+ public typealias Module = ExpoModulesCore.BaseModule & ExpoModulesCore.AnyModule
174
+ public protocol AnyDefinition {
175
+ }
176
+ public struct ModuleDefinition : ExpoModulesCore.AnyDefinition {
177
+ }
178
+ @_functionBuilder public struct ModuleDefinitionBuilder {
179
+ public static func buildBlock(_ definitions: ExpoModulesCore.AnyDefinition...) -> ExpoModulesCore.ModuleDefinition
180
+ }
181
+ extension ExpoModulesCore.AnyModule {
182
+ public func name(_ name: Swift.String) -> ExpoModulesCore.AnyDefinition
183
+ public func constants(_ closure: () -> [Swift.String : Any?]) -> ExpoModulesCore.AnyDefinition
184
+ public func method<R>(_ name: Swift.String, _ closure: @escaping () -> R) -> ExpoModulesCore.AnyMethod
185
+ public func method<R, A0>(_ name: Swift.String, _ closure: @escaping (A0) -> R) -> ExpoModulesCore.AnyMethod where A0 : ExpoModulesCore.AnyMethodArgument
186
+ public func method<R, A0, A1>(_ name: Swift.String, _ closure: @escaping (A0, A1) -> R) -> ExpoModulesCore.AnyMethod where A0 : ExpoModulesCore.AnyMethodArgument, A1 : ExpoModulesCore.AnyMethodArgument
187
+ public func method<R, A0, A1, A2>(_ name: Swift.String, _ closure: @escaping (A0, A1, A2) -> R) -> ExpoModulesCore.AnyMethod where A0 : ExpoModulesCore.AnyMethodArgument, A1 : ExpoModulesCore.AnyMethodArgument, A2 : ExpoModulesCore.AnyMethodArgument
188
+ public func method<R, A0, A1, A2, A3>(_ name: Swift.String, _ closure: @escaping (A0, A1, A2, A3) -> R) -> ExpoModulesCore.AnyMethod where A0 : ExpoModulesCore.AnyMethodArgument, A1 : ExpoModulesCore.AnyMethodArgument, A2 : ExpoModulesCore.AnyMethodArgument, A3 : ExpoModulesCore.AnyMethodArgument
189
+ public func method<R, A0, A1, A2, A3, A4>(_ name: Swift.String, _ closure: @escaping (A0, A1, A2, A3, A4) -> R) -> ExpoModulesCore.AnyMethod where A0 : ExpoModulesCore.AnyMethodArgument, A1 : ExpoModulesCore.AnyMethodArgument, A2 : ExpoModulesCore.AnyMethodArgument, A3 : ExpoModulesCore.AnyMethodArgument, A4 : ExpoModulesCore.AnyMethodArgument
190
+ public func method<R, A0, A1, A2, A3, A4, A5>(_ name: Swift.String, _ closure: @escaping (A0, A1, A2, A3, A4, A5) -> R) -> ExpoModulesCore.AnyMethod where A0 : ExpoModulesCore.AnyMethodArgument, A1 : ExpoModulesCore.AnyMethodArgument, A2 : ExpoModulesCore.AnyMethodArgument, A3 : ExpoModulesCore.AnyMethodArgument, A4 : ExpoModulesCore.AnyMethodArgument, A5 : ExpoModulesCore.AnyMethodArgument
191
+ public func method<R, A0, A1, A2, A3, A4, A5, A6>(_ name: Swift.String, _ closure: @escaping (A0, A1, A2, A3, A4, A5, A6) -> R) -> ExpoModulesCore.AnyMethod where A0 : ExpoModulesCore.AnyMethodArgument, A1 : ExpoModulesCore.AnyMethodArgument, A2 : ExpoModulesCore.AnyMethodArgument, A3 : ExpoModulesCore.AnyMethodArgument, A4 : ExpoModulesCore.AnyMethodArgument, A5 : ExpoModulesCore.AnyMethodArgument, A6 : ExpoModulesCore.AnyMethodArgument
192
+ public func method<R, A0, A1, A2, A3, A4, A5, A6, A7>(_ name: Swift.String, _ closure: @escaping (A0, A1, A2, A3, A4, A5, A6, A7) -> R) -> ExpoModulesCore.AnyMethod where A0 : ExpoModulesCore.AnyMethodArgument, A1 : ExpoModulesCore.AnyMethodArgument, A2 : ExpoModulesCore.AnyMethodArgument, A3 : ExpoModulesCore.AnyMethodArgument, A4 : ExpoModulesCore.AnyMethodArgument, A5 : ExpoModulesCore.AnyMethodArgument, A6 : ExpoModulesCore.AnyMethodArgument, A7 : ExpoModulesCore.AnyMethodArgument
193
+ public func onCreate(_ closure: @escaping () -> Swift.Void) -> ExpoModulesCore.AnyDefinition
194
+ public func onDestroy(_ closure: @escaping () -> Swift.Void) -> ExpoModulesCore.AnyDefinition
195
+ public func onAppContextDestroys(_ closure: @escaping () -> Swift.Void) -> ExpoModulesCore.AnyDefinition
196
+ public func onAppEntersForeground(_ closure: @escaping () -> Swift.Void) -> ExpoModulesCore.AnyDefinition
197
+ public func onAppBecomesActive(_ closure: @escaping () -> Swift.Void) -> ExpoModulesCore.AnyDefinition
198
+ public func onAppEntersBackground(_ closure: @escaping () -> Swift.Void) -> ExpoModulesCore.AnyDefinition
199
+ }
200
+ public func viewManager(@ExpoModulesCore.ViewManagerDefinitionBuilder _ closure: @escaping () -> ExpoModulesCore.ViewManagerDefinition) -> ExpoModulesCore.AnyDefinition
201
+ public func view(_ closure: @escaping () -> UIKit.UIView) -> ExpoModulesCore.AnyDefinition
202
+ public func prop<ViewType, PropType>(_ name: Swift.String, _ setter: @escaping (ViewType, PropType) -> Swift.Void) -> ExpoModulesCore.AnyDefinition where ViewType : UIKit.UIView
203
+ @_hasMissingDesignatedInitializers public class ModuleHolder {
204
+ @objc deinit
205
+ }
206
+ @_hasMissingDesignatedInitializers public class ModuleRegistry : Swift.Sequence {
207
+ public typealias Element = ExpoModulesCore.ModuleHolder
208
+ public func register(module: ExpoModulesCore.AnyModule)
209
+ public func register(fromProvider provider: ExpoModulesCore.ModulesProviderProtocol)
210
+ public func unregister(module: ExpoModulesCore.AnyModule)
211
+ public func has(moduleWithName moduleName: Swift.String) -> Swift.Bool
212
+ public func get(moduleHolderForName moduleName: Swift.String) -> ExpoModulesCore.ModuleHolder?
213
+ public func get(moduleWithName moduleName: Swift.String) -> ExpoModulesCore.AnyModule?
214
+ public func makeIterator() -> Swift.IndexingIterator<[ExpoModulesCore.ModuleHolder]>
215
+ public typealias Iterator = Swift.IndexingIterator<[ExpoModulesCore.ModuleHolder]>
216
+ @objc deinit
217
+ }
218
+ @objc public protocol ModulesProviderObjCProtocol {
219
+ }
220
+ public protocol ModulesProviderProtocol : ExpoModulesCore.ModulesProviderObjCProtocol {
221
+ func exportedModules() -> [ExpoModulesCore.AnyModule.Type]
222
+ }
223
+ @_inheritsConvenienceInitializers @objc open class ModulesProvider : ObjectiveC.NSObject, ExpoModulesCore.ModulesProviderProtocol, ExpoModulesCore.ModulesProviderObjCProtocol {
224
+ open func exportedModules() -> [ExpoModulesCore.AnyModule.Type]
225
+ @objc override dynamic public init()
226
+ @objc deinit
227
+ }
228
+ public struct Promise : ExpoModulesCore.AnyMethodArgument {
229
+ public typealias ResolveClosure = (Any?) -> Swift.Void
230
+ public typealias RejectClosure = (ExpoModulesCore.CodedError) -> Swift.Void
231
+ public var resolver: ExpoModulesCore.Promise.ResolveClosure
232
+ public var rejecter: ExpoModulesCore.Promise.RejectClosure
233
+ public var legacyRejecter: ExpoModulesCore.EXPromiseRejectBlock {
234
+ get
235
+ }
236
+ public func resolve(_ value: Any? = nil)
237
+ public func reject(_ error: ExpoModulesCore.CodedError)
238
+ public func reject(_ code: Swift.String, _ description: Swift.String)
239
+ }
240
+ public protocol Record : ExpoModulesCore.AnyMethodArgument {
241
+ typealias Dict = [Swift.String : Any]
242
+ init()
243
+ init(from: Self.Dict) throws
244
+ func toDictionary() -> Self.Dict
245
+ }
246
+ extension ExpoModulesCore.Record {
247
+ public init(from dict: Self.Dict) throws
248
+ public func toDictionary() -> Self.Dict
249
+ }
250
+ @objc public class SwiftInteropBridge : ObjectiveC.NSObject {
251
+ @objc public init(modulesProvider: ExpoModulesCore.ModulesProviderObjCProtocol, legacyModuleRegistry: ExpoModulesCore.EXModuleRegistry)
252
+ @objc public func hasModule(_ moduleName: Swift.String) -> Swift.Bool
253
+ @objc public func callMethod(_ methodName: Swift.String, onModule moduleName: Swift.String, withArgs args: [Any], resolve: @escaping ExpoModulesCore.EXPromiseResolveBlock, reject: @escaping ExpoModulesCore.EXPromiseRejectBlock)
254
+ @objc public func exportedMethodNames() -> [Swift.String : [[Swift.String : Any]]]
255
+ @objc public func exportedModulesConstants() -> [Swift.String : Any]
256
+ @objc public func exportedViewManagersNames() -> [Swift.String]
257
+ @objc public func getViewManagers() -> [ExpoModulesCore.ViewModuleWrapper]
258
+ @objc deinit
259
+ }
260
+ public struct ViewManagerDefinition : ExpoModulesCore.AnyDefinition {
261
+ }
262
+ @_functionBuilder public struct ViewManagerDefinitionBuilder {
263
+ public static func buildBlock(_ definitions: ExpoModulesCore.AnyDefinition...) -> ExpoModulesCore.ViewManagerDefinition
264
+ }
265
+ @_inheritsConvenienceInitializers @objc public class ViewModuleWrapper : ExpoModulesCore.RCTViewManager {
266
+ public init(_ wrappedModuleHolder: ExpoModulesCore.ModuleHolder)
267
+ @objc override dynamic public init()
268
+ @objc public init(dummy: Any?)
269
+ @objc public func name() -> Swift.String
270
+ @objc override dynamic public class func moduleName() -> Swift.String
271
+ @objc override dynamic public class func requiresMainQueueSetup() -> Swift.Bool
272
+ @objc override dynamic public func view() -> UIKit.UIView!
273
+ @objc public class func propConfig_proxiedProperties() -> [Swift.String]
274
+ @objc public func set_proxiedProperties(_ json: Any?, forView view: UIKit.UIView, withDefaultView defaultView: UIKit.UIView)
275
+ @objc public static func createViewModuleWrapperClass(module: ExpoModulesCore.ViewModuleWrapper) -> ExpoModulesCore.ViewModuleWrapper.Type?
276
+ @objc deinit
277
+ }
278
+ extension ExpoModulesCore.Field : ExpoModulesCore.AnyField {}