Initial commit with local development content

This commit is contained in:
gem
2025-01-16 14:19:38 +08:00
commit 24fc4c113d
89 changed files with 2449 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import Flutter
import UIKit
import XCTest
@testable import flutter_cocos_view
// This demonstrates a simple unit test of the Swift portion of this plugin's implementation.
//
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
class RunnerTests: XCTestCase {
func testGetPlatformVersion() {
let plugin = FlutterCocosViewPlugin()
let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: [])
let resultExpectation = expectation(description: "result block must be called.")
plugin.handle(call) { result in
XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion)
resultExpectation.fulfill()
}
waitForExpectations(timeout: 1)
}
}