sparkling-debug-tool 2.1.0-rc.14 → 2.1.0-rc.16
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.
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import Foundation
|
|
6
6
|
import Lynx
|
|
7
7
|
import UIKit
|
|
8
|
+
import DebugRouter
|
|
8
9
|
|
|
9
10
|
@objcMembers
|
|
10
11
|
public class SparklingDebugTool: NSObject {
|
|
@@ -13,9 +14,9 @@ public class SparklingDebugTool: NSObject {
|
|
|
13
14
|
public static func setup() {
|
|
14
15
|
// Preset values must be set BEFORE LynxEnv flags so the DevTool
|
|
15
16
|
// service picks them up during initialization.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
if let devtool = LynxServices.getInstanceWith(LynxServiceDevToolProtocol.self)
|
|
19
|
+
as? LynxServiceDevToolProtocol {
|
|
19
20
|
devtool.logBoxPresetValue = true
|
|
20
21
|
devtool.lynxDebugPresetValue = true
|
|
21
22
|
}
|
|
@@ -27,11 +28,7 @@ public class SparklingDebugTool: NSObject {
|
|
|
27
28
|
|
|
28
29
|
// Enable DebugRouter so the DevTool desktop app can discover and
|
|
29
30
|
// connect to this app (via USB or network).
|
|
30
|
-
|
|
31
|
-
let instance = routerClass.perform(NSSelectorFromString("instance"))?.takeUnretainedValue(),
|
|
32
|
-
instance.responds(to: NSSelectorFromString("enableAllSessions")) {
|
|
33
|
-
instance.perform(NSSelectorFromString("enableAllSessions"))
|
|
34
|
-
}
|
|
31
|
+
DebugRouter.instance().enableAllSessions()
|
|
35
32
|
}
|
|
36
33
|
|
|
37
34
|
public static func devURL(fallback: String) -> String {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
require 'json'
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
|
|
4
|
-
|
|
5
1
|
Pod::Spec.new do |s|
|
|
6
2
|
s.name = 'Sparkling-DebugTool'
|
|
7
|
-
s.version =
|
|
8
|
-
s.summary =
|
|
9
|
-
s.description =
|
|
3
|
+
s.version = "2.1.0-rc.16"
|
|
4
|
+
s.summary = "Sparkling debug tool SDK"
|
|
5
|
+
s.description = "Sparkling debug tool SDK"
|
|
10
6
|
s.license = { :type => 'Apache-2.0' }
|
|
11
7
|
s.author = 'TikTok'
|
|
12
8
|
s.homepage = 'https://github.com/tiktok/sparkling'
|
|
@@ -16,12 +12,11 @@ Pod::Spec.new do |s|
|
|
|
16
12
|
s.static_framework = true
|
|
17
13
|
|
|
18
14
|
s.source_files = [
|
|
19
|
-
'packages/sparkling-debug-tool/ios/Sources/**/*.{h,m,swift}',
|
|
20
|
-
'ios/Sources/**/*.{h,m,swift}',
|
|
21
15
|
'Sources/**/*.{h,m,swift}'
|
|
22
16
|
]
|
|
23
17
|
|
|
24
18
|
s.dependency 'Lynx', '~> 3.6.0'
|
|
25
19
|
s.dependency 'LynxService/Devtool', '~> 3.6.0'
|
|
26
20
|
s.dependency 'LynxDevtool/Framework', '~> 3.6.0'
|
|
21
|
+
s.dependency 'DebugRouter'
|
|
27
22
|
end
|