expo-modules-core 0.11.2 → 0.11.3
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.
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.11.3 — 2022-07-18
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Changed access levels in the Logger and fixed the timer to log milliseconds instead of seconds. ([#18271](https://github.com/expo/expo/pull/18271) by [@douglowder](https://github.com/douglowder))
|
|
18
|
+
|
|
13
19
|
## 0.11.2 — 2022-07-16
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -6,7 +6,7 @@ apply plugin: 'maven-publish'
|
|
|
6
6
|
apply plugin: "de.undercouch.download"
|
|
7
7
|
|
|
8
8
|
group = 'host.exp.exponent'
|
|
9
|
-
version = '0.11.
|
|
9
|
+
version = '0.11.3'
|
|
10
10
|
|
|
11
11
|
buildscript {
|
|
12
12
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -144,7 +144,7 @@ android {
|
|
|
144
144
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
145
145
|
consumerProguardFiles 'proguard-rules.pro'
|
|
146
146
|
versionCode 1
|
|
147
|
-
versionName "0.11.
|
|
147
|
+
versionName "0.11.3"
|
|
148
148
|
|
|
149
149
|
testInstrumentationRunner "expo.modules.TestRunner"
|
|
150
150
|
|
|
@@ -390,7 +390,7 @@ RCT_EXPORT_METHOD(callMethod:(NSString *)moduleName methodNameOrKey:(id)methodNa
|
|
|
390
390
|
{
|
|
391
391
|
// Hacky way to get a dictionary with `RCTComponentData` from UIManager.
|
|
392
392
|
NSMutableDictionary<NSString *, RCTComponentData *> *componentDataByName = [bridge.uiManager valueForKey:@"_componentDataByName"];
|
|
393
|
-
NSString *className = NSStringFromClass(moduleClass);
|
|
393
|
+
NSString *className = [moduleClass moduleName] ?: NSStringFromClass(moduleClass);
|
|
394
394
|
|
|
395
395
|
if ([moduleClass isSubclassOfClass:[RCTViewManager class]] && !componentDataByName[className]) {
|
|
396
396
|
RCTComponentData *componentData = [[RCTComponentData alloc] initWithManagerClass:moduleClass bridge:bridge eventDispatcher:bridge.eventDispatcher];
|
|
@@ -45,7 +45,7 @@ public enum LogType: Int {
|
|
|
45
45
|
Maps the log types to the log types used by the `os.log` logger.
|
|
46
46
|
*/
|
|
47
47
|
@available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
|
|
48
|
-
func toOSLogType() -> OSLogType {
|
|
48
|
+
public func toOSLogType() -> OSLogType {
|
|
49
49
|
switch self {
|
|
50
50
|
case .trace, .timer, .stacktrace, .debug:
|
|
51
51
|
return .debug
|
|
@@ -139,7 +139,7 @@ public class Logger {
|
|
|
139
139
|
}
|
|
140
140
|
let endTime = DispatchTime.now()
|
|
141
141
|
let diff = Double(endTime.uptimeNanoseconds - startTime.uptimeNanoseconds) / 1_000_000
|
|
142
|
-
log(type: .timer, "Timer '\(id)' has finished in: \(diff)
|
|
142
|
+
log(type: .timer, "Timer '\(id)' has finished in: \(diff) ms")
|
|
143
143
|
timers.removeValue(forKey: id)
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -183,11 +183,11 @@ public class Logger {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
private func reformatStackSymbol(_ symbol: String) -> String {
|
|
187
187
|
return symbol.replacingOccurrences(of: #"^\d+\s+"#, with: "", options: .regularExpression)
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
private func describe(value: Any) -> String {
|
|
191
191
|
if let value = value as? String {
|
|
192
192
|
return value
|
|
193
193
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-core",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "The core of Expo Modules architecture",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@testing-library/react-hooks": "^7.0.1",
|
|
43
43
|
"expo-module-scripts": "^2.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "5d900179d047d9f4d89c0b9953b7121a1f1df8a2"
|
|
46
46
|
}
|