Skip to content

Commit

Permalink
release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexFill committed Apr 29, 2022
1 parent 8b70c8b commit fbd052c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion PandaSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "PandaSDK"
spec.version = "0.7.17"
spec.version = "0.8.0"
spec.summary = "Panda pod which will help us boost our revenue."

# This description is used to generate tags and improve search results.
Expand Down
11 changes: 1 addition & 10 deletions Sources/PandaSDK/Models/PandaPayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ public struct PandaPayload {
strings: [[String: String]]? = nil,
lessonTitle: String? = nil,
customId: String? = nil,
email: String? = nil,
course: String? = nil,
variant: String? = nil
email: String? = nil
) {
self.shouldShowDefaultScreen = shouldShowDefaultScreen
self.screenBackgroundColor = screenBackgroundColor
Expand Down Expand Up @@ -57,13 +55,6 @@ public struct PandaPayload {
if let email = email {
data["email"] = email
}

if let course = course {
data["course"] = course
}
if let variant = variant {
data["variant"] = variant
}

self.data = data
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/PandaSDK/Views/WebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ final class WebViewController: UIViewController, WKScriptMessageHandler {
override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
if keyPath == "loading", !wv.isLoading {
handleScreenDidLoad()
didFinishLoading(nil)
}
}

Expand Down Expand Up @@ -331,7 +332,6 @@ final class WebViewController: UIViewController, WKScriptMessageHandler {
wv.alpha = 1
loadingIndicator.stopAnimating()
pandaLog("html did load \(Date().timeIntervalSince1970) \(Date())")
didFinishLoading(nil)
}

@objc private func failedByTimeOut() {
Expand Down

0 comments on commit fbd052c

Please sign in to comment.