-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swift 2.3 升级到 swift 3.0 #235
Comments
我已经将 Config 、 PCObserver 、PhoneRTCPlugin、Session、SessionDescriptionDelegate、SJProgressHUD 等 swift 文件升级到 swift 3.0 了。请更新您的文件,以便项目在未来做好升级。 谢谢您的观看。 Config.swift import Foundation struct TurnConfig {
} struct StreamsConfig {
} class SessionConfig {
} class VideoConfig {
} class VideoLayoutParams {
} PCObserver.swift import Foundation class PCObserver : NSObject, RTCPeerConnectionDelegate {
} PhoneRTCPlugin.swift import Foundation @objc(PhoneRTCPlugin)
} struct VideoTrackViewPair { Session.swift import Foundation class Session {
} SessionDescriptionDelegate.swift import Foundation class SessionDescriptionDelegate : UIResponder, RTCSessionDescriptionDelegate {
} SJProgressHUD.swift // import UIKit enum ShowType { extension SJProgressHUD {
} private let circleSize = CGSize(width: 40, height: 40) class SJProgressHUD : NSObject {
// window.transform = CGAffineTransform(rotationAngle: CGFloat(angle * M_PI / 180)) class drawImage {
// path.addArc(withCenter: CGPoint(x: 20, y: 20), radius: 19, startAngle: 0, endAngle: CGFloat(M_PI*2), clockwise: true)
// tmpPath.addArc(withCenter: CGPoint(x: 20, y: 30), radius: 1, startAngle: 0, endAngle: CGFloat(M_PI2), clockwise: true)
} |
Just update the files with the new Code ? or there other things we have to do ? |
I copied modification of @wolfmanwoking , plus I've added the package.json to be Cordova 7 compliant (to fix the plugin add error) in my fork: It's not perfect, but I think I'm on the right way. The project doesn't compile with I am currently using it with success.
|
@De-Lac @wolfmanwoking Getting Have at least 5 errors when running
System info:
|
add that file manually in the Xcode project. |
No description provided.
The text was updated successfully, but these errors were encountered: