update test helper setup for new objective_c package

This commit is contained in:
Nick Fisher
2025-05-21 13:14:46 +08:00
parent 097d991ea8
commit 73f04eb0d4

View File

@@ -83,7 +83,8 @@ class TestHelper {
outDir = Directory("$testDir/output/${dir}"); outDir = Directory("$testDir/output/${dir}");
outDir.createSync(recursive: true); outDir.createSync(recursive: true);
if (Platform.isMacOS) { if (Platform.isMacOS) {
DynamicLibrary.open('${testDir}/libThermionTextureSwift.dylib'); DynamicLibrary.open('${testDir}/generated/objective_c.dylib');
DynamicLibrary.open('${testDir}/generated/libThermionTextureSwift.dylib');
} }
} }
@@ -190,7 +191,7 @@ class TestHelper {
/// ///
Future<ThermionTextureSwift> createTexture(int width, int height, Future<ThermionTextureSwift> createTexture(int width, int height,
{bool depth = false}) async { {bool depth = false}) async {
final object = ThermionTextureSwift.new$(); final object = ThermionTextureSwift();
object.initWithWidth_height_isDepth_(width, height, depth); object.initWithWidth_height_isDepth_(width, height, depth);
return object; return object;
} }