recreate example iOS project

This commit is contained in:
Nick Fisher
2024-06-06 23:33:43 +08:00
parent b6b4bcc94a
commit 77322019ec
25 changed files with 272 additions and 149 deletions

View File

@@ -2,25 +2,11 @@ import Flutter
import UIKit
import XCTest
@testable import flutter_filament
// 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 = FlutterFilamentPlugin()
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)
func testExample() {
// If you add code to the Runner application, consider adding tests here.
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
}
}